add agenix rules

This commit is contained in:
lucy 2026-10-18 12:16:38 +02:00
commit a0c6dcaa26
3 changed files with 173 additions and 13 deletions

View file

@ -0,0 +1,7 @@
{ config }:
let
main = "age17hvac3hn79mwttel9snw87a20x4vguh7y7ys43xmvlhrl3mqs3wswuzlt6";
in
{
"easyroam.age".publicKeys = [ main ];
}

View file

@ -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;
};
};
};
}