From 58c72c320021c7affe93fa728b23422eeb0b9bb0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 21 Mar 2021 11:31:15 +0100 Subject: [PATCH] Allow build on machines that are missing secrets --- machines/sayuri/hardware-configuration.nix | 2 +- modules/initrd-ssh.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/sayuri/hardware-configuration.nix b/machines/sayuri/hardware-configuration.nix index 7e4a0bf..3ad71c6 100644 --- a/machines/sayuri/hardware-configuration.nix +++ b/machines/sayuri/hardware-configuration.nix @@ -43,7 +43,7 @@ label = "data"; enable = true; blkDev = "/dev/disk/by-uuid/576088d4-9aae-4159-a028-feadb2621a1a"; - keyFile = "/mnt-root" + toString ; + keyFile = "/mnt-root" + toString + "/luks-data"; }; }; }; diff --git a/modules/initrd-ssh.nix b/modules/initrd-ssh.nix index 2bb1984..4b38c2b 100644 --- a/modules/initrd-ssh.nix +++ b/modules/initrd-ssh.nix @@ -12,7 +12,7 @@ # ssh-keygen -t ed25519 -N "" -f initrd-ssh-host-key -C HOSTNAME # pass insert -m nixos/machines/HOSTNAME/initrd-ssh-host-key < initrd-ssh-host-key hostKeys = [ - (toString ) + (toString + "/initrd-ssh-host-key") ]; }; };