1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: prevent path -> string conversion in hostPubkey definition, which

caused repeated unnecessary rekeying
This commit is contained in:
oddlama 2023-05-10 18:24:24 +02:00
parent 24655ece76
commit e8f50ab906
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -42,7 +42,7 @@
# current system due to yubikey availability.
forceRekeyOnSystem = builtins.extraBuiltins.unsafeCurrentSystem;
hostPubkey = let
pubkeyPath = "${nodePath}/secrets/host.pub";
pubkeyPath = nodePath + "/secrets/host.pub";
in
lib.mkIf (lib.pathExists pubkeyPath || lib.trace "Missing pubkey for ${nodeName}: ${toString pubkeyPath} not found, using dummy replacement key for now." false)
pubkeyPath;