From b8c3752242ba2362a875dba555ff2527043bfe66 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 21 Jun 2025 22:33:33 -0400 Subject: move shiniji wireguard secretes to only shinji host (refactor hosts) --- hosts/shinji/sops.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hosts/shinji/sops.nix (limited to 'hosts/shinji/sops.nix') 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 = {}; + }; + }; +} -- cgit v1.2.3-freya