add asus-zenbook-ux481

This commit is contained in:
Andreas V. W. Zacchi
2025-03-20 14:30:24 +01:00
committed by mergify[bot]
parent e128b73252
commit a4bb30a900
6 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
config,
lib,
...
}:
{
imports = [
../../../common/cpu/intel/comet-lake/cpu-only.nix
../../../common/pc/laptop
../../../common/pc/laptop/ssd
../../battery.nix
];
boot.kernelParams = [
# These options are needed for suspend to work,
# otherwise the nvme will be mounted read-only on resume
"pcie_aspm=off"
"pcie_port_pm=off"
"nvme_core.default_ps_max_latency_us=0"
"mem_sleep_default=deep"
];
services.thermald.enable = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}