mirror of https://gitlab.crans.org/nounous/nixos
Merge branch 'fix_secrets' into 'main'
Fix du fichiers 'secrets.nix' pour agenix See merge request nounous/nixos!107main
commit
951aa7e6a0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue