(Hopefully) fixed hibernation issue

This commit is contained in:
Aleksandr Lebedev 2025-08-16 13:59:20 +02:00
parent 6cedbe691f
commit 855b232c4f
2 changed files with 10 additions and 8 deletions

View file

@ -31,8 +31,8 @@ in {
};
config = mkIf cfg.enable (import ./batteryStatus.nix {
inherit config;
inherit namespace;
inherit pkgs;
});
inherit config;
inherit namespace;
inherit pkgs;
});
}

View file

@ -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 = {