Rename installer.key to keyfile
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -51,7 +51,7 @@ check_key() {
|
||||
set_password_file() {
|
||||
SOPS_AGE_KEY_FILE="$flake/secrets/$key/key.txt"
|
||||
export SOPS_AGE_KEY_FILE
|
||||
sops --decrypt --extract "['luks']" "$flake/hosts/$host/secrets/secrets.yaml" > /tmp/installer.key
|
||||
sops --decrypt --extract "['luks']" "$flake/hosts/$host/secrets/secrets.yaml" > /tmp/keyfile
|
||||
unset SOPS_AGE_KEY_FILE
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ finish() {
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
rm -f /tmp/installer.key
|
||||
rm -f /tmp/keyfile
|
||||
if [[ -n "$host" ]]; then disko -m "unmount" "$flake/hosts/$host/format.nix"; fi
|
||||
if [[ -d "$root" ]]; then rmdir "$root"; fi
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@
|
||||
content = {
|
||||
name = "main";
|
||||
type = "luks";
|
||||
passwordFile = "/tmp/installer.key";
|
||||
passwordFile = "/tmp/keyfile";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
|
@@ -53,7 +53,6 @@
|
||||
|
||||
networking.hostName = "elara";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||||
|
||||
environment.impermanence.device =
|
||||
|
@@ -36,7 +36,7 @@
|
||||
content = {
|
||||
name = "usb";
|
||||
type = "luks";
|
||||
passwordFile = "/tmp/installer.key";
|
||||
passwordFile = "/tmp/keyfile";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
|
@@ -28,7 +28,7 @@
|
||||
content = {
|
||||
name = "installer";
|
||||
type = "luks";
|
||||
passwordFile = "/tmp/installer.key";
|
||||
passwordFile = "/tmp/keyfile";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user