(Hopefully) fixed hibernation issue
This commit is contained in:
parent
6cedbe691f
commit
855b232c4f
2 changed files with 10 additions and 8 deletions
|
|
@ -23,10 +23,12 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = [
|
kernelParams =
|
||||||
"resume_offset=${builtins.toString cfg.resumeDevice}"
|
[
|
||||||
"mem_sleep_default=deep"
|
"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;
|
inherit (cfg) resumeDevice;
|
||||||
};
|
};
|
||||||
services.logind = {
|
services.logind = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue