diff --git a/secrets.nix b/secrets.nix index 648937b..9e51f20 100644 --- a/secrets.nix +++ b/secrets.nix @@ -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