From ebdd1c8ae1fac999134952c4fe62ed50f16afd7f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 8 Jan 2026 10:40:54 +0100 Subject: [PATCH] fix(x1): powercap --- flake.lock | 18 +++++++++--------- .../x86_64-linux/x1/hardware-configuration.nix | 3 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 00169ba..db8a14f 100644 --- a/flake.lock +++ b/flake.lock @@ -497,11 +497,11 @@ ] }, "locked": { - "lastModified": 1766292113, - "narHash": "sha256-sWTtmkQujRpjWYCnZc8LWdDiCzrRlSBPrGovkZpLkBI=", + "lastModified": 1767850628, + "narHash": "sha256-D3QzdIT11J66I4mzwmIpAGLzPAcbCS2VaKN8fmOe6+E=", "owner": "nix-community", "repo": "home-manager", - "rev": "fdec8815a86db36f42fc9c8cb2931cd8485f5aed", + "rev": "8c8a16d41353a174767c38b962359b51a56ca02e", "type": "github" }, "original": { @@ -1029,11 +1029,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1766201043, - "narHash": "sha256-eplAP+rorKKd0gNjV3rA6+0WMzb1X1i16F5m5pASnjA=", + "lastModified": 1767799921, + "narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b3aad468604d3e488d627c0b43984eb60e75e782", + "rev": "d351d0653aeb7877273920cd3e823994e7579b0b", "type": "github" }, "original": { @@ -1381,11 +1381,11 @@ }, "unstable": { "locked": { - "lastModified": 1766309749, - "narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=", + "lastModified": 1767767207, + "narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816", + "rev": "5912c1772a44e31bf1c63c0390b90501e5026886", "type": "github" }, "original": { diff --git a/systems/x86_64-linux/x1/hardware-configuration.nix b/systems/x86_64-linux/x1/hardware-configuration.nix index eae65d4..c525ce2 100644 --- a/systems/x86_64-linux/x1/hardware-configuration.nix +++ b/systems/x86_64-linux/x1/hardware-configuration.nix @@ -17,7 +17,7 @@ hardware.enableRedistributableFirmware = lib.mkDefault true; services.udev.extraRules = '' - SUBSYSTEM=="powercap", KERNEL=="intel-rapl:0", ATTR{constraint_0_power_limit_uw}="28000000", ATTR{constraint_1_power_limit_uw}="35000000", ATTR{constraint_1_time_window_us}="9994240" + SUBSYSTEM=="powercap", KERNEL=="intel-rapl:0", ATTR{constraint_0_power_limit_uw}="28000000", ATTR{constraint_1_power_limit_uw}="100000000", ATTR{constraint_1_time_window_us}="20000000", ATTR{constraint_0_time_window_us}="40000000" ''; boot = { @@ -40,6 +40,7 @@ "quiet" "splash" "video=efifb:nobgrt" + "mitigations=off" ]; extraModulePackages = [ ];