flake: migrate to agenix-rekey
This commit is contained in:
parent
26734c2196
commit
b54be3998f
61 changed files with 306 additions and 190 deletions
13
lib/secrets.nix
Normal file
13
lib/secrets.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
withOwnerGroup = name: rekeyFile: {
|
||||
owner = name;
|
||||
group = name;
|
||||
mode = "440";
|
||||
inherit rekeyFile;
|
||||
};
|
||||
withOwner = owner: rekeyFile: { inherit owner rekeyFile; };
|
||||
withGroup = group: rekeyFile: {
|
||||
inherit group rekeyFile;
|
||||
mode = "440";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue