From cb8cd9a5ea7e56de3a61ee0ffcfc21593533578e Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 21 Oct 2024 17:12:55 +0200 Subject: [PATCH] feat: move to laptop role for sakura --- hosts/sakura/default.nix | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index 432df40..64947fd 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -1,4 +1,4 @@ -{ inputs, lib, pkgs, config, ... }: +{ inputs, ... }: { imports = [ ./hardware-configuration.nix @@ -9,13 +9,8 @@ hardware.framework.amd-7040.preventWakeOnAC = true; networking.hostName = "sakura"; - environment.systemPackages = with pkgs; [ - acpi - brightnessctl - cpupower-gui - powertop - ]; - + laptop = true; + services = { thermald.enable = true; cpupower-gui.enable = true; @@ -28,29 +23,5 @@ percentageAction = 3; criticalPowerAction = "PowerOff"; }; - - auto-cpufreq = { - enable = false; - settings = { - battery = { - governor = "powersave"; - turbo = "auto"; - }; - charger = { - governor = "performance"; - turbo = "auto"; - }; - }; - }; - }; - - boot = { - kernelModules = ["acpi_call"]; - extraModulePackages = with config.boot.kernelPackages; - [ - acpi_call - cpupower - ] - ++ [pkgs.cpupower-gui]; }; }