mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Use systemctl sleep for automatic suspend mode selection
This commit is contained in:
parent
1b27e93c03
commit
86d31cc3c6
5 changed files with 6 additions and 17 deletions
|
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
{
|
||||
timeout = 1800;
|
||||
on-timeout = "systemctl suspend${lib.optionalString config.myConfig.hibernation.enable "-then-hibernate"}";
|
||||
on-timeout = "systemctl sleep";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue