forked from mirrors_public/oddlama_nix-config
fix: prevent path -> string conversion in hostPubkey definition, which
caused repeated unnecessary rekeying
This commit is contained in:
parent
24655ece76
commit
e8f50ab906
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
||||||
# current system due to yubikey availability.
|
# current system due to yubikey availability.
|
||||||
forceRekeyOnSystem = builtins.extraBuiltins.unsafeCurrentSystem;
|
forceRekeyOnSystem = builtins.extraBuiltins.unsafeCurrentSystem;
|
||||||
hostPubkey = let
|
hostPubkey = let
|
||||||
pubkeyPath = "${nodePath}/secrets/host.pub";
|
pubkeyPath = nodePath + "/secrets/host.pub";
|
||||||
in
|
in
|
||||||
lib.mkIf (lib.pathExists pubkeyPath || lib.trace "Missing pubkey for ${nodeName}: ${toString pubkeyPath} not found, using dummy replacement key for now." false)
|
lib.mkIf (lib.pathExists pubkeyPath || lib.trace "Missing pubkey for ${nodeName}: ${toString pubkeyPath} not found, using dummy replacement key for now." false)
|
||||||
pubkeyPath;
|
pubkeyPath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue