mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
add asus-zenbook-ux481
This commit is contained in:
committed by
mergify[bot]
parent
e128b73252
commit
a4bb30a900
25
asus/zenbook/ux481/shared.nix
Normal file
25
asus/zenbook/ux481/shared.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user