Rename installer.key to keyfile

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-22 18:35:25 +00:00
parent 8064aba0cd
commit e0602dd1a0
6 changed files with 6 additions and 7 deletions

View File

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

View File

@@ -36,7 +36,7 @@
content = {
name = "main";
type = "luks";
passwordFile = "/tmp/installer.key";
passwordFile = "/tmp/keyfile";
settings = {
allowDiscards = true;
};

View File

@@ -53,7 +53,6 @@
networking.hostName = "elara";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
environment.impermanence.device =

View File

@@ -36,7 +36,7 @@
content = {
name = "usb";
type = "luks";
passwordFile = "/tmp/installer.key";
passwordFile = "/tmp/keyfile";
settings = {
allowDiscards = true;
};

View File

@@ -28,7 +28,7 @@
content = {
name = "installer";
type = "luks";
passwordFile = "/tmp/installer.key";
passwordFile = "/tmp/keyfile";
settings = {
allowDiscards = true;
};

View File

@@ -102,7 +102,7 @@ cat <<'EOF' > "./hosts/$host/format.nix"
content = {
name = "main";
type = "luks";
passwordFile = "/tmp/installer.key";
passwordFile = "/tmp/keyfile";
settings = {
allowDiscards = true;
};