From 8d75ce65d6c1d900f21809da1147b1e7ce73b39e Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 22 Mar 2024 08:30:52 +0100 Subject: [PATCH] Modularize locations of sops files --- modules/system/sops.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/sops.nix b/modules/system/sops.nix index 9b0de29..4f404ba 100644 --- a/modules/system/sops.nix +++ b/modules/system/sops.nix @@ -11,7 +11,7 @@ config = lib.mkIf config.myConfig.sops.enable { sops = { age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"]; - defaultSopsFile = ../../hosts/dell-laptop/secrets.yaml; + defaultSopsFile = "${inputs.self}/hosts/${config.networking.hostName}/secrets.yaml"; }; }; }