1
0
forked from clan/clan-core
Commit Graph

245 Commits

Author SHA1 Message Date
4cde2d96be Reapply "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
This reverts commit 9778444706.

workaround upstream bug: https://github.com/NixOS/nixpkgs/issues/324802
2024-07-05 19:29:01 +07:00
9778444706 Revert "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
This reverts commit afbd4a984d.

The old configuration cannot be updated like this:

eve] error:
[eve]        … while calling the 'head' builtin
[eve]          at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/attrsets.nix:1575:11:
[eve]          1574|         || pred here (elemAt values 1) (head values) then
[eve]          1575|           head values
[eve]              |           ^
[eve]          1576|         else
[eve]
[eve]        … while evaluating the attribute 'value'
[eve]          at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/modules.nix:809:9:
[eve]           808|     in warnDeprecation opt //
[eve]           809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
[eve]              |         ^
[eve]           810|         inherit (res.defsFinal') highestPrio;
[eve]
[eve]        … while evaluating the option `system.build.toplevel':
[eve]
[eve]        … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/activation/top-level.nix':
[eve]
[eve]        … while evaluating the option `assertions':
[eve]
[eve]        … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/boot/systemd.nix':
[eve]
[eve]        … while evaluating the option `systemd.services':
[eve]
[eve]        … while evaluating definitions from `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/zerotier':
[eve]
[eve]        … while evaluating the option `clan.core.networking.zerotier.networkId':
[eve]
[eve]        (stack trace truncated; use '--show-trace' to show the full, detailed trace)
[eve]
[eve]        error: A definition for option `clan.core.networking.zerotier.networkId' is not of type `null or string'. Definition values:
[eve]        - In `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/networking.nix':
[eve]            {
[eve]              _type = "override";
[eve]              content = "267efd4a15b69623";
[eve]              priorit
2024-07-05 11:16:05 +02:00
afbd4a984d clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking} 2024-07-04 17:05:37 +07:00
32f3b3a309 vars: add generator.runtimeInputs 2024-07-04 13:42:25 +07:00
208021ee1c reference docs: add missing description fields and enforce it from now on 2024-07-04 13:34:55 +07:00
0a4abd0e46 Merge pull request 'vars: import by default & fix option rendering' (#1690) from DavHau/clan-core:DavHau-dave into main 2024-07-04 06:15:50 +00:00
85a9d82132 vars: import by default & fix option rendering 2024-07-04 13:12:29 +07:00
a31e70b2ec facts: mention prompt_value in docs for generator.scripts 2024-07-04 12:59:49 +07:00
a7d1ea455b vars: add generators.<name>.finalScript 2024-07-02 16:37:31 +07:00
d3f31acc5c secrets: add settings, generator submodules, improve tests 2024-07-02 15:38:46 +07:00
3a0f591c8c vars: simplify eval tests by using submodule directly 2024-07-02 13:55:00 +07:00
0f95bfd279 Merge pull request 'fix secret generation on macos' (#1669) from fix-macos-deploy into main 2024-06-30 06:25:39 +00:00
2e2358d850 introduce minifakeroot that also works on macos 2024-06-27 18:53:10 +02:00
bae0a888c9 make bubblewrap in fact generation optional 2024-06-27 18:23:05 +02:00
5668bc561d vars: init
- init eval tests
- init basic interface
2024-06-27 21:09:55 +07:00
9b0e2a87e8
ClanModules: Add docs and api to retrieve metadata 2024-06-25 21:17:01 +02:00
2f8b782a1f Inventory: init module merge & validation logic for inventory 2024-06-25 12:23:29 +00:00
c89080deb4 Extend build-clan interface 2024-06-25 12:23:29 +00:00
e44b07df66 inventory: rename clan.services 2024-06-25 12:23:29 +00:00
afca7ae0cc update inventory implementation 2024-06-25 12:23:29 +00:00
6086f27263 fix fake-etc build on machines without sandbox
If we have no sandbox enabled or on macos with sandbox enabled, /etc
contains a lot more files than we actually want.
Instead of copying some random files, we now just create those files
ourself.
2024-06-21 17:01:40 +02:00
ef9ed1ebea clan.core.state: wrap all commands in shell scripts
Otherwise we cannot execute them via ssh and also have nix store
dependencies.
2024-06-19 17:54:46 +02:00
313db5643f refactor: rename clanCore -> clan.core 2024-06-18 18:32:40 +07:00
7766829fb1 vm.nix: fix typo in comment 2024-06-11 14:44:08 -07:00
5c11a30b46 backup: add a way to stop services before restoring a state. 2024-06-06 17:30:35 +02:00
0dc3b9f056 postgresql: add backup and restore 2024-06-06 14:28:50 +02:00
6dec2a9222 add postgresql backup hooks 2024-06-06 13:27:30 +02:00
3c0b5f0867 drop deprecated mdDoc 2024-05-28 13:35:11 +02:00
da5f363bee clan flash: Use latest kernel with zfs support. bcachefs supported too. 2024-05-18 23:47:17 +02:00
64a98281f0 Add bcachefs support. Fix clan flash docu. 2024-05-18 23:18:02 +02:00
3293ac0c14 fix get_keymap_and_locale 2024-05-14 15:41:15 +02:00
be841cdec2 Removed ssh password login 2024-05-14 15:41:15 +02:00
c25f7934ba clan flash: Copied network-status from nixos-images into installer 2024-05-14 15:41:15 +02:00
4f6d25160f Add --ssh-pubkey FILE argument 2024-05-14 15:41:15 +02:00
82fa89b57e Fix template. Improve docu. Add disko as default imported module. 2024-05-10 15:39:46 +02:00
a48df5b993 Add package function-schema and module-schema. Add check for module jsonschema. 2024-05-01 23:16:17 +02:00
c681cc0998 clanCore: remove repl-flake as it is now stable 2024-04-27 16:28:23 +02:00
3c02453705 installer: fix qr code again 2024-04-22 21:04:41 +02:00
4ae5b24d24 installer: make qrcode compatible with nixos-images 2024-04-22 20:49:35 +02:00
4964415d34 facts password-store: take path from variable 2024-04-21 19:09:46 +02:00
8658e1694a rework multicast support 2024-04-17 10:57:17 +02:00
26c71d9720 installer: add zstd compression 2024-04-12 14:00:25 +00:00
088e0d3eee fix installer 2024-04-12 14:00:25 +00:00
6958da2d57 sops/compat: fix name reference 2024-04-12 13:23:52 +02:00
58446db110 sops: fix secret path generation 2024-04-12 13:12:31 +02:00
82aafc287e also enable LLMNR 2024-04-10 15:14:30 +00:00
0d4e1f870b factstore: secret backends now can return the path to a secret dynamically
try to move path function out
2024-04-10 15:14:30 +00:00
faaf6649c5 fix multicast dns for ethernet 2024-04-10 15:14:30 +00:00
a8718b92d4 enable multicast fore default dhcp network 2024-04-09 13:35:51 +00:00
19a62817f2 sops: strip out clanCore.machineName instead of networking.hostName 2024-04-09 15:10:27 +02:00