From 62e5c673c500e3fbf14e0d84a3730025d8624dc4 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 20 May 2025 23:54:35 +0200 Subject: [PATCH 1/2] thinknix: disable broken tpm tpm tpm0: A TPM error (714) occurred attempting to create NULL primary tpm tpm0: null key creation failed with 714 --- hosts/thinknix/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/thinknix/default.nix b/hosts/thinknix/default.nix index 431f3ba..92abe46 100644 --- a/hosts/thinknix/default.nix +++ b/hosts/thinknix/default.nix @@ -33,4 +33,7 @@ # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "18.09"; # Did you read the comment? + + # since 25.05, this broke and started to slow down system startup. tpm is currently not utilised on this host, so simply disable. + security.tpm2.enable = false; } From 1b3a130561e8f46fb47512018e2097dcc4a4976f Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 20 May 2025 23:56:37 +0200 Subject: [PATCH 2/2] thinknix: do not use powersave CPU governor powersave turns out to be rather slow on today's software stacks --- hosts/thinknix/hardware-configuration.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/hosts/thinknix/hardware-configuration.nix b/hosts/thinknix/hardware-configuration.nix index e60ac46..74708b5 100644 --- a/hosts/thinknix/hardware-configuration.nix +++ b/hosts/thinknix/hardware-configuration.nix @@ -21,7 +21,6 @@ boot.extraModulePackages = [ ]; nix.settings.max-jobs = lib.mkDefault 4; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; # modesetting is always better than intel (legacy) services.xserver.videoDrivers = [ "modesetting" ];