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 =
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue