add user conf and split some configs
This commit is contained in:
parent
e7f0cdb4a2
commit
6d4453b618
6 changed files with 52 additions and 16 deletions
10
modules/hardware/hibernation.nix
Normal file
10
modules/hardware/hibernation.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ resume-dev, ... }: {
|
||||
security.protectKernelImage = false; # https://discourse.nixos.org/t/hibernate-doesnt-work-anymore/24673/7
|
||||
boot = {
|
||||
kernelParams = if resume-dev == "" then [] else ["resume=${resume-dev}"];
|
||||
resumeDevice = "${resume-dev}";
|
||||
};
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue