From 4098541d0fb32431c6dfb38bb382123e1484b74d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 10 Jun 2024 13:20:06 +0200 Subject: [PATCH] On-demand cpu frequency --- deploy/flake.lock | 8 ++++---- flake.lock | 8 ++++---- flakes/flake.lock | 6 +++--- systems/dilion/base.nix | 2 +- systems/eldiron/base.nix | 2 +- systems/zoldene/base.nix | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/deploy/flake.lock b/deploy/flake.lock index 96ddd6d..a76a82a 100644 --- a/deploy/flake.lock +++ b/deploy/flake.lock @@ -2783,7 +2783,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-haTtrZR9TigbV2r1atpMZtFalJ3ADrTDlyYj235FZXk=", + "narHash": "sha256-oi7B2foI2ukk31mswamJ/sUoq2yvlS/abJj2CYJMS1U=", "path": "../flakes", "type": "path" }, @@ -3855,7 +3855,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", + "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=", "path": "../systems/dilion", "type": "path" }, @@ -3903,7 +3903,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", + "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=", "path": "../systems/eldiron", "type": "path" }, @@ -3974,7 +3974,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", + "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=", "path": "../systems/zoldene", "type": "path" }, diff --git a/flake.lock b/flake.lock index 13f97a3..bffa047 100644 --- a/flake.lock +++ b/flake.lock @@ -2664,7 +2664,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-haTtrZR9TigbV2r1atpMZtFalJ3ADrTDlyYj235FZXk=", + "narHash": "sha256-oi7B2foI2ukk31mswamJ/sUoq2yvlS/abJj2CYJMS1U=", "path": "./flakes", "type": "path" }, @@ -3871,7 +3871,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", + "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=", "path": "../systems/dilion", "type": "path" }, @@ -3919,7 +3919,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", + "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=", "path": "../systems/eldiron", "type": "path" }, @@ -3990,7 +3990,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", + "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=", "path": "../systems/zoldene", "type": "path" }, diff --git a/flakes/flake.lock b/flakes/flake.lock index cf0ef6c..49298bf 100644 --- a/flakes/flake.lock +++ b/flakes/flake.lock @@ -3776,7 +3776,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", + "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=", "path": "../systems/dilion", "type": "path" }, @@ -3824,7 +3824,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", + "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=", "path": "../systems/eldiron", "type": "path" }, @@ -3895,7 +3895,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", + "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=", "path": "../systems/zoldene", "type": "path" }, diff --git a/systems/dilion/base.nix b/systems/dilion/base.nix index 8c0b3ad..b47d928 100644 --- a/systems/dilion/base.nix +++ b/systems/dilion/base.nix @@ -21,7 +21,7 @@ # available in nixos-20.09 #zfs.requestEncryptionCredentials = [ "zpool/root" ]; }; - powerManagement.cpuFreqGovernor = "powersave"; + powerManagement.cpuFreqGovernor = "ondemand"; hardware.enableRedistributableFirmware = true; swapDevices = [ { label = "swap"; } ]; diff --git a/systems/eldiron/base.nix b/systems/eldiron/base.nix index 5308ddb..fa5e504 100644 --- a/systems/eldiron/base.nix +++ b/systems/eldiron/base.nix @@ -29,7 +29,7 @@ ]; nixpkgs.overlays = builtins.attrValues ports.overlays; - powerManagement.cpuFreqGovernor = "powersave"; + powerManagement.cpuFreqGovernor = "ondemand"; security.acme.certs."${name}".postRun = builtins.concatStringsSep "\n" [ (lib.optionalString config.services.websites.env.production.enable "/run/current-system/sw/bin/machinectl shell httpd-production /usr/bin/env systemctl reload httpd.service") diff --git a/systems/zoldene/base.nix b/systems/zoldene/base.nix index fc0d68a..617cd82 100644 --- a/systems/zoldene/base.nix +++ b/systems/zoldene/base.nix @@ -112,7 +112,7 @@ in }; }; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.enableRedistributableFirmware = lib.mkDefault true; system.activationScripts.createDatasets = { -- 2.41.0