organize modules
This commit is contained in:
parent
d7453265a1
commit
d0d4bf9ddb
21 changed files with 54 additions and 69 deletions
10
modules/hardware/core/hibernation.nix
Normal file
10
modules/hardware/core/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