Refactor sops default file path
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -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";
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -168,8 +168,6 @@ cat <<EOF > "./hosts/$host/default.nix"
|
||||
];
|
||||
|
||||
networking.hostName = "$host";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||||
}
|
||||
EOF
|
||||
|
||||
|
Reference in New Issue
Block a user