add agenix rules
This commit is contained in:
parent
9e62e079ae
commit
a0c6dcaa26
3 changed files with 173 additions and 13 deletions
7
modules/system/agenix/_agenix-rules.nix
Normal file
7
modules/system/agenix/_agenix-rules.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config }:
|
||||
let
|
||||
main = "age17hvac3hn79mwttel9snw87a20x4vguh7y7ys43xmvlhrl3mqs3wswuzlt6";
|
||||
in
|
||||
{
|
||||
"easyroam.age".publicKeys = [ main ];
|
||||
}
|
||||
|
|
@ -1,17 +1,11 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules =
|
||||
{ config, ... }:
|
||||
let
|
||||
main = "age17hvac3hn79mwttel9snw87a20x4vguh7y7ys43xmvlhrl3mqs3wswuzlt6";
|
||||
in
|
||||
{
|
||||
"easyroam.age".publicKeys = [ main ];
|
||||
age = {
|
||||
enable = true;
|
||||
identityPaths = [ "/var/lib/misc/key.age" ];
|
||||
secrets = {
|
||||
easyroam.file = ./easyroam.age;
|
||||
};
|
||||
flake.nixosModules = {
|
||||
age = {
|
||||
enable = true;
|
||||
identityPaths = [ "/var/lib/misc/key.age" ];
|
||||
secrets = {
|
||||
easyroam.file = ./easyroam.age;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue