feat: move lots over to laptop role

This commit is contained in:
Ahwx 2024-10-21 22:58:12 +02:00
parent 751f826a07
commit 7d4ca49605

View file

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