mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
hibernation configured
This commit is contained in:
parent
3ba0464f5f
commit
1bc8c22feb
2 changed files with 13 additions and 0 deletions
|
|
@ -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 = [
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue