Use systemctl sleep for automatic suspend mode selection

This commit is contained in:
SebastianStork 2025-03-10 18:45:18 +01:00
parent 1b27e93c03
commit 86d31cc3c6
5 changed files with 6 additions and 17 deletions

View file

@ -37,7 +37,7 @@
}
{
timeout = 1800;
on-timeout = "systemctl suspend${lib.optionalString config.myConfig.hibernation.enable "-then-hibernate"}";
on-timeout = "systemctl sleep";
}
];
};