Modularize locations of sops files

This commit is contained in:
SebastianStork 2024-03-22 08:30:52 +01:00
parent ce62cdff75
commit 8d75ce65d6

View file

@ -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";
};
};
}