fix: when creating initrd host key for first install make sure users exist, otherwise ssh-keygen will shit it's pants

This commit is contained in:
oddlama 2023-12-23 00:06:15 +01:00
parent dfed8f8219
commit 66c1c9d72d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -23,7 +23,7 @@
[[ -e ${config.age.secrets.initrd_host_ed25519_key.path} ]] \ [[ -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} || ${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"]; system.activationScripts.agenixChown.deps = ["agenixEnsureInitrdHostkey"];
} }