From 6af3d8c004f9a485f47cd94b6235a3330d279f4f Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 22 Oct 2023 16:02:37 +0200 Subject: [PATCH] align hardware.nix --- hosts/mu/default.nix | 1 + hosts/mu/fan.nix | 18 ++++++++++++++++++ hosts/mu/hardware.nix | 17 ----------------- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 hosts/mu/fan.nix diff --git a/hosts/mu/default.nix b/hosts/mu/default.nix index a6ffb53..989053e 100644 --- a/hosts/mu/default.nix +++ b/hosts/mu/default.nix @@ -4,6 +4,7 @@ ../../overlays ../../modules/base ../../modules/desktop + ./fan.nix ./fish.nix ./git.nix ./hosts.nix diff --git a/hosts/mu/fan.nix b/hosts/mu/fan.nix new file mode 100644 index 0000000..4876a7e --- /dev/null +++ b/hosts/mu/fan.nix @@ -0,0 +1,18 @@ +{ ... }: { + # Disable jet engine + services.thinkfan = { + enable = true; + levels = [ + [ 0 0 70 ] + [ 1 65 75 ] + [ 2 70 80 ] + [ 3 75 85 ] + [ 6 80 90 ] + [ 7 90 95 ] + [ "level auto" 95 32767 ] + ]; + }; + boot.extraModprobeConfig = '' + options thinkpad_acpi fan_control=1 experimental=1 + ''; +} diff --git a/hosts/mu/hardware.nix b/hosts/mu/hardware.nix index 3a2a773..e3ffb27 100644 --- a/hosts/mu/hardware.nix +++ b/hosts/mu/hardware.nix @@ -38,21 +38,4 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - # Disable jet engine - services.thinkfan = { - enable = true; - levels = [ - [ 0 0 70 ] - [ 1 65 75 ] - [ 2 70 80 ] - [ 3 75 85 ] - [ 6 80 90 ] - [ 7 90 95 ] - [ "level auto" 95 32767 ] - ]; - }; - boot.extraModprobeConfig = '' - options thinkpad_acpi fan_control=1 experimental=1 - ''; }