refactor: make the secret helper a bit easier to read
This commit is contained in:
parent
b0e3bc0f75
commit
39d692ab1e
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{lib, ...}: {
|
||||||
age.secrets = with builtins;
|
age.secrets = with builtins;
|
||||||
listToAttrs (map (k: {
|
listToAttrs (map (k: {
|
||||||
name = substring 0 (stringLength k - 4) k;
|
name = lib.removeSuffix ".age" k;
|
||||||
value = {file = ./. + "/${k}";};
|
value = {file = ./. + "/${k}";};
|
||||||
}) (attrNames (import ./secrets.nix)));
|
}) (attrNames (import ./secrets.nix)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue