diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index c8e180e..468dec8 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -1,27 +1,23 @@ -{ inputs, ... }: +{ inputs, pkgs, config, ... }: { imports = [ ./hardware-configuration.nix ./../../modules/core inputs.nixos-hardware.nixosModules.framework-13-7040-amd ]; + + liv.laptop.enable = true; hardware.framework.amd-7040.preventWakeOnAC = true; networking.hostName = "sakura"; - liv.laptop = true; - - services = { - thermald.enable = true; - cpupower-gui.enable = true; - # power-profiles-daemon.enable = true; - - upower = { - enable = true; - percentageLow = 20; - percentageCritical = 5; - percentageAction = 3; - criticalPowerAction = "PowerOff"; - }; + boot = { + kernelModules = ["acpi_call"]; + extraModulePackages = with config.boot.kernelPackages; + [ + acpi_call + cpupower + ] + ++ [pkgs.cpupower-gui]; }; }