From 66c1c9d72df24d01c39bb3e004c987af1a6d2895 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 23 Dec 2023 00:06:15 +0100 Subject: [PATCH] fix: when creating initrd host key for first install make sure users exist, otherwise ssh-keygen will shit it's pants --- modules/optional/initrd-ssh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/optional/initrd-ssh.nix b/modules/optional/initrd-ssh.nix index f9ca967..4b0b8ff 100644 --- a/modules/optional/initrd-ssh.nix +++ b/modules/optional/initrd-ssh.nix @@ -23,7 +23,7 @@ [[ -e ${config.age.secrets.initrd_host_ed25519_key.path} ]] \ || ${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f ${config.age.secrets.initrd_host_ed25519_key.path} ''; - deps = ["agenixInstall"]; + deps = ["agenixInstall" "users"]; }; system.activationScripts.agenixChown.deps = ["agenixEnsureInitrdHostkey"]; }