(Hopefully) fixed hibernation issue
This commit is contained in:
parent
6cedbe691f
commit
855b232c4f
2 changed files with 10 additions and 8 deletions
|
|
@ -31,8 +31,8 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable (import ./batteryStatus.nix {
|
||||
inherit config;
|
||||
inherit namespace;
|
||||
inherit pkgs;
|
||||
});
|
||||
inherit config;
|
||||
inherit namespace;
|
||||
inherit pkgs;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,10 +23,12 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"resume_offset=${builtins.toString cfg.resumeDevice}"
|
||||
"mem_sleep_default=deep"
|
||||
];
|
||||
kernelParams =
|
||||
[
|
||||
"mem_sleep_default=deep"
|
||||
]
|
||||
#https://github.com/nix-community/disko/issues/651#issuecomment-2383741717
|
||||
++ optional (!config.boot.initrd.systemd.enable) "resume_offset=${builtins.toString cfg.swapFileOffset}";
|
||||
inherit (cfg) resumeDevice;
|
||||
};
|
||||
services.logind = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue