From e8f50ab906c9e0e82585b7406477252bc8940cbe Mon Sep 17 00:00:00 2001 From: oddlama Date: Wed, 10 May 2023 18:24:24 +0200 Subject: [PATCH] fix: prevent path -> string conversion in hostPubkey definition, which caused repeated unnecessary rekeying --- hosts/common/core/system.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/common/core/system.nix b/hosts/common/core/system.nix index 0a092fb..224863e 100644 --- a/hosts/common/core/system.nix +++ b/hosts/common/core/system.nix @@ -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;