Merge branch 'fix_secrets' into 'main'

Fix du fichiers 'secrets.nix' pour agenix

See merge request nounous/nixos!107
merge-requests/107/merge
Lyes Saadi 2026-11-19 14:46:52 +01:00
commit 4695392284
1 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ let
genAttrs =
paths: groups:
builtins.foldl' (acc: secret: acc // { "${secret}".publicKeys = groups ++ nounous; }) { } paths;
builtins.foldl' (acc: secret: acc // { "${lib.removePrefix "./" secret}".publicKeys = groups ++ nounous; }) { } paths;
# Secrets
@ -97,7 +97,7 @@ in
acc: secret:
acc
// {
"${secret}".publicKeys = [ key ] ++ nounous;
"${lib.removePrefix "./" secret}".publicKeys = [ key ] ++ nounous;
}
) { } secrets
) { } (lib.filterAttrs (host: _: host != "thot" && host != "cephiroth") hosts)
@ -112,7 +112,7 @@ in
acc: secret:
acc
// {
"${secret}".publicKeys = [ key ] ++ nounous;
"${lib.removePrefix "./" secret}".publicKeys = [ key ] ++ nounous;
}
) { } secrets
) { } hosts