mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-15 13:31:13 +01:00
add asus-zenbook-ux481
This commit is contained in:
parent
e128b73252
commit
a4bb30a900
6 changed files with 107 additions and 0 deletions
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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue