Refactor sops default file path
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -17,9 +17,13 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.age = {
|
sops = {
|
||||||
generateKey = true;
|
defaultSopsFile = ../../../../. + "/${config.networking.hostName}/secrets/secrets.yaml";
|
||||||
sshKeyPaths = [ config.environment.persistence."/persist"."/etc/ssh/ssh_host_ed25519_key".source ];
|
|
||||||
keyFile = "/var/lib/sops-nix/key.txt";
|
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";
|
networking.hostName = "eirene";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
|
||||||
|
|
||||||
fileSystems."/mnt/windows" = {
|
fileSystems."/mnt/windows" = {
|
||||||
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R841140X-part3";
|
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R841140X-part3";
|
||||||
|
@@ -54,11 +54,9 @@
|
|||||||
./users/nikara
|
./users/nikara
|
||||||
];
|
];
|
||||||
|
|
||||||
sas.build.private = true;
|
|
||||||
|
|
||||||
networking.hostName = "elara";
|
networking.hostName = "elara";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
sas.build.private = true;
|
||||||
|
|
||||||
environment.impermanence.device =
|
environment.impermanence.device =
|
||||||
config.disko.devices.disk.usb.content.partitions.root.content.content.device;
|
config.disko.devices.disk.usb.content.partitions.root.content.content.device;
|
||||||
|
@@ -37,8 +37,6 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "installer";
|
networking.hostName = "installer";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
|
||||||
|
|
||||||
environment.impermanence.device =
|
environment.impermanence.device =
|
||||||
config.disko.devices.disk.installer.content.partitions.root.content.content.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";
|
networking.hostName = "$host";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user