hibernation configured

This commit is contained in:
Semere Meharena Mebrahtom 2026-07-19 15:02:50 +02:00
parent 3ba0464f5f
commit 1bc8c22feb
Signed by: semere
GPG key ID: 7FC937214DF30488
2 changed files with 13 additions and 0 deletions

View file

@ -35,6 +35,15 @@ in
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;
services.logind = {
settings = {
Login = {
HandleLidSwitch = "suspend-then-hibernate";
HibernateDelaySec = "1800";
};
};
};
nix = { nix = {
settings = { settings = {
experimental-features = [ experimental-features = [

View file

@ -105,6 +105,10 @@ in
command = "${pkgs.wlopm}/bin/wlopm --off '*'"; command = "${pkgs.wlopm}/bin/wlopm --off '*'";
resumeCommand = "${pkgs.wlopm}/bin/wlopm --on '*'"; resumeCommand = "${pkgs.wlopm}/bin/wlopm --on '*'";
} }
{
timeout = 900;
command = "${pkgs.systemd}/bin/systemctl hibernate";
}
]; ];
}; };