aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-06-10 13:20:06 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-06-11 00:20:30 +0200
commit4098541d0fb32431c6dfb38bb382123e1484b74d (patch)
tree40c9c1b423f1eb35f07413a82efed77cab7656ba
parent49fee6918c32e5293622ad5217a27194af72365f (diff)
downloadNix-4098541d0fb32431c6dfb38bb382123e1484b74d.tar.gz
Nix-4098541d0fb32431c6dfb38bb382123e1484b74d.tar.zst
Nix-4098541d0fb32431c6dfb38bb382123e1484b74d.zip
On-demand cpu frequency
-rw-r--r--deploy/flake.lock8
-rw-r--r--flake.lock8
-rw-r--r--flakes/flake.lock6
-rw-r--r--systems/dilion/base.nix2
-rw-r--r--systems/eldiron/base.nix2
-rw-r--r--systems/zoldene/base.nix2
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 @@
2783 }, 2783 },
2784 "locked": { 2784 "locked": {
2785 "lastModified": 1, 2785 "lastModified": 1,
2786 "narHash": "sha256-haTtrZR9TigbV2r1atpMZtFalJ3ADrTDlyYj235FZXk=", 2786 "narHash": "sha256-oi7B2foI2ukk31mswamJ/sUoq2yvlS/abJj2CYJMS1U=",
2787 "path": "../flakes", 2787 "path": "../flakes",
2788 "type": "path" 2788 "type": "path"
2789 }, 2789 },
@@ -3855,7 +3855,7 @@
3855 }, 3855 },
3856 "locked": { 3856 "locked": {
3857 "lastModified": 1, 3857 "lastModified": 1,
3858 "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", 3858 "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=",
3859 "path": "../systems/dilion", 3859 "path": "../systems/dilion",
3860 "type": "path" 3860 "type": "path"
3861 }, 3861 },
@@ -3903,7 +3903,7 @@
3903 }, 3903 },
3904 "locked": { 3904 "locked": {
3905 "lastModified": 1, 3905 "lastModified": 1,
3906 "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", 3906 "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=",
3907 "path": "../systems/eldiron", 3907 "path": "../systems/eldiron",
3908 "type": "path" 3908 "type": "path"
3909 }, 3909 },
@@ -3974,7 +3974,7 @@
3974 }, 3974 },
3975 "locked": { 3975 "locked": {
3976 "lastModified": 1, 3976 "lastModified": 1,
3977 "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", 3977 "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=",
3978 "path": "../systems/zoldene", 3978 "path": "../systems/zoldene",
3979 "type": "path" 3979 "type": "path"
3980 }, 3980 },
diff --git a/flake.lock b/flake.lock
index 13f97a3..bffa047 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2664,7 +2664,7 @@
2664 }, 2664 },
2665 "locked": { 2665 "locked": {
2666 "lastModified": 1, 2666 "lastModified": 1,
2667 "narHash": "sha256-haTtrZR9TigbV2r1atpMZtFalJ3ADrTDlyYj235FZXk=", 2667 "narHash": "sha256-oi7B2foI2ukk31mswamJ/sUoq2yvlS/abJj2CYJMS1U=",
2668 "path": "./flakes", 2668 "path": "./flakes",
2669 "type": "path" 2669 "type": "path"
2670 }, 2670 },
@@ -3871,7 +3871,7 @@
3871 }, 3871 },
3872 "locked": { 3872 "locked": {
3873 "lastModified": 1, 3873 "lastModified": 1,
3874 "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", 3874 "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=",
3875 "path": "../systems/dilion", 3875 "path": "../systems/dilion",
3876 "type": "path" 3876 "type": "path"
3877 }, 3877 },
@@ -3919,7 +3919,7 @@
3919 }, 3919 },
3920 "locked": { 3920 "locked": {
3921 "lastModified": 1, 3921 "lastModified": 1,
3922 "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", 3922 "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=",
3923 "path": "../systems/eldiron", 3923 "path": "../systems/eldiron",
3924 "type": "path" 3924 "type": "path"
3925 }, 3925 },
@@ -3990,7 +3990,7 @@
3990 }, 3990 },
3991 "locked": { 3991 "locked": {
3992 "lastModified": 1, 3992 "lastModified": 1,
3993 "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", 3993 "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=",
3994 "path": "../systems/zoldene", 3994 "path": "../systems/zoldene",
3995 "type": "path" 3995 "type": "path"
3996 }, 3996 },
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 @@
3776 }, 3776 },
3777 "locked": { 3777 "locked": {
3778 "lastModified": 1, 3778 "lastModified": 1,
3779 "narHash": "sha256-qMGFJ0jSaCq+lbvhgAF/ndZe2w6KbCVuZStIZdRctBA=", 3779 "narHash": "sha256-hE6jL305XpLZvlCYRKnTzLfJW9RuISAC4i/ifRHwBKs=",
3780 "path": "../systems/dilion", 3780 "path": "../systems/dilion",
3781 "type": "path" 3781 "type": "path"
3782 }, 3782 },
@@ -3824,7 +3824,7 @@
3824 }, 3824 },
3825 "locked": { 3825 "locked": {
3826 "lastModified": 1, 3826 "lastModified": 1,
3827 "narHash": "sha256-+/zr56Fj0elDHugf3dSoSS+N0vG26vF4U9B4UEEVAhE=", 3827 "narHash": "sha256-ItVNdRvOUeVByeiuNpeHKIpCjxTG8qS0L5ankxfNlyI=",
3828 "path": "../systems/eldiron", 3828 "path": "../systems/eldiron",
3829 "type": "path" 3829 "type": "path"
3830 }, 3830 },
@@ -3895,7 +3895,7 @@
3895 }, 3895 },
3896 "locked": { 3896 "locked": {
3897 "lastModified": 1, 3897 "lastModified": 1,
3898 "narHash": "sha256-TpEvHjtYcwJmnPpNHnJDFEfcn0Ee+xMVguxIXjGWbg4=", 3898 "narHash": "sha256-JlmfWvZWdpG8URsDmCRaWmLo1pUxKf0yxwcLF2OwzTo=",
3899 "path": "../systems/zoldene", 3899 "path": "../systems/zoldene",
3900 "type": "path" 3900 "type": "path"
3901 }, 3901 },
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 @@
21 # available in nixos-20.09 21 # available in nixos-20.09
22 #zfs.requestEncryptionCredentials = [ "zpool/root" ]; 22 #zfs.requestEncryptionCredentials = [ "zpool/root" ];
23 }; 23 };
24 powerManagement.cpuFreqGovernor = "powersave"; 24 powerManagement.cpuFreqGovernor = "ondemand";
25 hardware.enableRedistributableFirmware = true; 25 hardware.enableRedistributableFirmware = true;
26 26
27 swapDevices = [ { label = "swap"; } ]; 27 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 @@
29 ]; 29 ];
30 30
31 nixpkgs.overlays = builtins.attrValues ports.overlays; 31 nixpkgs.overlays = builtins.attrValues ports.overlays;
32 powerManagement.cpuFreqGovernor = "powersave"; 32 powerManagement.cpuFreqGovernor = "ondemand";
33 33
34 security.acme.certs."${name}".postRun = builtins.concatStringsSep "\n" [ 34 security.acme.certs."${name}".postRun = builtins.concatStringsSep "\n" [
35 (lib.optionalString config.services.websites.env.production.enable "/run/current-system/sw/bin/machinectl shell httpd-production /usr/bin/env systemctl reload httpd.service") 35 (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
112 }; 112 };
113 }; 113 };
114 114
115 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; 115 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
116 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 116 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
117 hardware.enableRedistributableFirmware = lib.mkDefault true; 117 hardware.enableRedistributableFirmware = lib.mkDefault true;
118 system.activationScripts.createDatasets = { 118 system.activationScripts.createDatasets = {