Refactor sops default file path

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-13 11:03:09 +01:00
parent 89401a72b7
commit d07e77a577
5 changed files with 10 additions and 14 deletions

View File

@@ -17,9 +17,13 @@
];
};
sops.age = {
generateKey = true;
sshKeyPaths = [ config.environment.persistence."/persist"."/etc/ssh/ssh_host_ed25519_key".source ];
keyFile = "/var/lib/sops-nix/key.txt";
sops = {
defaultSopsFile = ../../../../. + "/${config.networking.hostName}/secrets/secrets.yaml";
age = {
generateKey = true;
sshKeyPaths = [ config.environment.persistence."/persist"."/etc/ssh/ssh_host_ed25519_key".source ];
keyFile = "/var/lib/sops-nix/key.txt";
};
};
}

View File

@@ -48,8 +48,6 @@
];
networking.hostName = "eirene";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
fileSystems."/mnt/windows" = {
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R841140X-part3";

View File

@@ -54,11 +54,9 @@
./users/nikara
];
sas.build.private = true;
networking.hostName = "elara";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
sas.build.private = true;
environment.impermanence.device =
config.disko.devices.disk.usb.content.partitions.root.content.content.device;

View File

@@ -37,8 +37,6 @@
];
networking.hostName = "installer";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
environment.impermanence.device =
config.disko.devices.disk.installer.content.partitions.root.content.content.device;