diff options
Diffstat (limited to 'hosts/shinji/sops.nix')
-rw-r--r-- | hosts/shinji/sops.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/hosts/shinji/sops.nix b/hosts/shinji/sops.nix new file mode 100644 index 0000000..fa3272c --- /dev/null +++ b/hosts/shinji/sops.nix @@ -0,0 +1,30 @@ +{ + config, + pkgs, + inputs, + ... +}: let + isEd25519 = k: k.type == "ed25519"; + getKeyPath = k: k.path; + keys = builtins.filter isEd25519 config.services.openssh.hostKeys; +in { + imports = [ + inputs.sops-nix.nixosModules.sops + ]; + + environment.systemPackages = with pkgs; [ + sops + ]; + + sops = { + defaultSopsFile = ./secrets.yaml; + + gnupg.home = config.homePath + "/.gnupg"; + gnupg.sshKeyPaths = []; + + secrets = { + freyanetWg = {}; + tinternetWg = {}; + }; + }; +} |