Merge branch 'fix_secrets' into 'main'

Fix du fichiers 'secrets.nix' pour agenix

See merge request nounous/nixos!107
main
Pyjacpp 2026-11-19 14:52:45 +01:00
commit 951aa7e6a0
1 changed files with 3 additions and 3 deletions

View File

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