From 0d4f9198986e41b251be1d8b6e1ebdb26dd3b943 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 7 Nov 2024 20:38:09 +0000 Subject: [PATCH] Enable system76 hardware settings Remove tlp in case there are conflicts. --- lib/nixos/configuration.nix | 14 -------------- lib/nixos/hardware-configuration.nix | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/nixos/configuration.nix b/lib/nixos/configuration.nix index b0b0c43..90765a5 100644 --- a/lib/nixos/configuration.nix +++ b/lib/nixos/configuration.nix @@ -46,20 +46,6 @@ in services.thermald.enable = true; services.power-profiles-daemon.enable = false; - services.tlp = { - enable = true; - - settings = { - PCIE_ASPM_ON_BAT = "powersupersave"; - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_MAX_PERF_ON_AC = "95"; - CPU_MAX_PERF_ON_BAT = "50"; - STOP_CHARGE_THRESH_BAT1 = "95"; - STOP_CHARGE_THRESH_BAT0 = "95"; - }; - }; - systemd.extraConfig = '' DefaultTimeoutStopSec=10s ''; diff --git a/lib/nixos/hardware-configuration.nix b/lib/nixos/hardware-configuration.nix index fdc44ea..37d2de3 100644 --- a/lib/nixos/hardware-configuration.nix +++ b/lib/nixos/hardware-configuration.nix @@ -30,6 +30,8 @@ boot.kernelPackages = pkgs.linuxPackages_zen; hardware.enableAllFirmware = true; + hardware.system76.enableAll = true; + fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4";