diff options
Diffstat (limited to 'nix/modules/secrets.nix')
-rw-r--r-- | nix/modules/secrets.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nix/modules/secrets.nix b/nix/modules/secrets.nix new file mode 100644 index 0000000..29e8c4c --- /dev/null +++ b/nix/modules/secrets.nix @@ -0,0 +1,20 @@ +{ config, ... }: +{ + sops = { + defaultSopsFile = ../../secrets/secrets.yaml; + age = { + keyFile = "/home/${config.monorepo.vars.userName}/.ssh/keys.txt"; + }; + secrets.mail = { + format = "yaml"; + path = "${config.sops.defaultSymlinkPath}/mail"; + }; + secrets.digikey = { + format = "yaml"; + path = "${config.sops.defaultSymlinkPath}/digikey"; + }; + + defaultSymlinkPath = "/run/user/1000/secrets"; + defaultSecretsMountPoint = "/run/user/1000/secrets.d"; + }; +} |