diff options
Diffstat (limited to 'modules/core/sops.nix')
| -rw-r--r-- | modules/core/sops.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/core/sops.nix b/modules/core/sops.nix new file mode 100644 index 0000000..c1c9d13 --- /dev/null +++ b/modules/core/sops.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + environment.systemPackages = [ + pkgs.sops + ]; + + sops = { + gnupg.sshKeyPaths = [ ]; + secrets.tailscale_authentication_key.sopsFile = ../../secrets/hosts.yaml; + + age = { + sshKeyPaths = [ ]; + keyFile = "/var/lib/sops-nix/keys.txt"; + generateKey = true; + }; + }; +} |