DavHau
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
Jörg Thalheim
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
DavHau
afbd4a984d
clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}
2024-07-04 17:05:37 +07:00
Johannes Kirschbauer
9b0e2a87e8
ClanModules: Add docs and api to retrieve metadata
2024-06-25 21:17:01 +02:00
Jörg Thalheim
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
DavHau
313db5643f
refactor: rename clanCore -> clan.core
2024-06-18 18:32:40 +07:00
Jörg Thalheim
c79680344d
fix restore if database does not exists
2024-06-17 14:21:45 +02:00
Jörg Thalheim
ec49d1f844
container-driver: source nixos environment variables in test commands
2024-06-14 11:27:06 +02:00
Jörg Thalheim
e3d84a5daf
matrix-synapse: use upstream patch to create users declarativly
2024-06-14 11:27:06 +02:00
Jörg Thalheim
79b5ad0754
matrix-synapse: use registration_shared_secret_path instead
2024-06-14 11:18:09 +02:00
Jörg Thalheim
24b0d72d96
matrix-synapse: fix user check
2024-06-14 11:18:09 +02:00
Jörg Thalheim
bc0e0088a0
matrix-synapse: add automatic user creation
2024-06-11 13:19:18 +02:00
Jörg Thalheim
3322bbd681
backups: extend tests to also check state.preBackupCommand
2024-06-10 15:57:41 +02:00
Jörg Thalheim
5c11a30b46
backup: add a way to stop services before restoring a state.
2024-06-06 17:30:35 +02:00
Jörg Thalheim
0dc3b9f056
postgresql: add backup and restore
2024-06-06 14:28:50 +02:00
Jörg Thalheim
c0d8aaf73a
postgresql: add new method to create users and databases
2024-06-06 14:07:56 +02:00
Jörg Thalheim
6dec2a9222
add postgresql backup hooks
2024-06-06 13:27:30 +02:00
Jörg Thalheim
c1aedc5bb8
matrix-enable: drop enable option
2024-06-06 13:27:30 +02:00
Jörg Thalheim
750c8df003
upgrade nix in development to latest
...
Better error messages!!
2024-05-31 16:37:07 +02:00
Jörg Thalheim
5c75a6490b
fix offline build of flash command
2024-05-29 12:45:50 +02:00
Jörg Thalheim
f0f97baa65
drop global argparse flags
...
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
a-kenji
4ee90b4b9f
impure-checks: unset CLAN_DIR
...
Unset `CLAN_DIR` in the impure checks, so that it won't reference the
users configuration.
Fixes #1419
2024-05-24 12:03:11 +02:00
Qubasa
b3297532ad
nix flake update & disable checks.flash-installer
2024-05-15 22:54:38 +02:00
Qubasa
4f6d25160f
Add --ssh-pubkey FILE argument
2024-05-14 15:41:15 +02:00
Qubasa
d9ce211d1a
secrets: Fix test failure through flake update
2024-05-04 13:11:37 +02:00
Qubasa
b95d95554a
Add description field to function-schema
2024-05-02 16:34:25 +02:00
Qubasa
a48df5b993
Add package function-schema and module-schema. Add check for module jsonschema.
2024-05-01 23:16:17 +02:00
DavHau
cf67de2f69
secrets: ensure all added/deleted files get committed
2024-04-24 17:26:32 +07:00
Jörg Thalheim
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
Jörg Thalheim
3212410704
add flake-parts module for clan
2024-04-03 16:45:06 +02:00
Jörg Thalheim
65d116ec28
migrate secrets to new api
2024-03-28 11:02:14 +01:00
lassulus
a8d35d37e7
refactor clanCore.secrets -> clanCore.facts
2024-03-27 16:03:16 +01:00
DavHau
3771be2110
checks: add check for rendering docs
2024-03-27 16:59:42 +07:00
Jörg Thalheim
74b5f6c61a
localbackup: rename mountHook/umountHook to preMountHook/postUnmountHook
2024-03-26 14:58:37 +01:00
Jörg Thalheim
d291b1db63
localbackup: integrate into regression test
2024-03-25 13:26:42 +01:00
clan-bot
1d6cc49da5
Merge pull request 'clanModules: init matrix-synapse' ( #1017 ) from matrix-synapse into main
2024-03-22 11:39:50 +00:00
lassulus
786a4586a6
checks/matrix-synapse: init
2024-03-22 12:26:37 +01:00
Jörg Thalheim
350593ccde
backups: add test for pre and post restore command
2024-03-20 09:32:01 +01:00
Jörg Thalheim
aa659bcc17
backups: no longer interpret backup interface as bash commands
2024-03-20 09:32:01 +01:00
Jörg Thalheim
9383e41d68
make backup provider more generic
2024-03-20 08:29:05 +00:00
Jörg Thalheim
65b6ae8bb7
refactor backup test to be just a single machine
2024-03-19 14:32:11 +01:00
Jörg Thalheim
e296a3019d
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Jörg Thalheim
b1897530c8
clan.borgbackup: drop enable option
2024-03-12 11:21:10 +01:00
Jörg Thalheim
3cc97ebc56
fix container tests
2024-03-07 14:13:11 +01:00
Jörg Thalheim
93afd06bcb
fix install test
2024-03-07 14:13:11 +01:00
Jörg Thalheim
f599243cbd
add flash command
2024-03-07 14:13:11 +01:00
Jörg Thalheim
ab2defa9e4
add confirmation prompt when installing
2024-03-07 14:13:11 +01:00
Jörg Thalheim
0481746198
drop meshnamed from repository
...
It's not super useful and we can always add it back later if we need it.
2024-03-06 10:02:21 +01:00
lassulus
ed653fa8b9
fix pyproject syntax, ignore E731
2024-03-03 06:20:08 +01:00
Jörg Thalheim
81fc60eef8
encrypt backups by default
2024-02-22 15:03:22 +01:00