1

Home: Generate .sops.yaml

This commit is contained in:
2025-07-09 17:56:45 +02:00
parent de07d64fdd
commit b8a3ba207b
2 changed files with 11 additions and 7 deletions

View File

@ -301,6 +301,17 @@
{
".ssh/id_ed25519.pub".text = "${publicKeys.${username}.ssh}";
".secrets/age/age.pub".text = "${publicKeys.${username}.age}";
# The sops config specifies what happens when we call sops edit
".sops.yaml".text = ''
keys:
- &${username} ${publicKeys.${username}.age}
creation_rules:
- path_regex: secrets.yaml$
key_groups:
- age:
- *${username}
'';
}
(lib.mkIf nixosConfig.modules.desktopportal.termfilechooser.enable {
".config/xdg-desktop-portal-termfilechooser/config".text = ''

View File

@ -1,7 +0,0 @@
keys:
- &christoph age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
creation_rules:
- path_regex: secrets.yaml$
key_groups:
- age:
- *christoph