mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:54:35 +00:00
Configure systemctl suspend-then-sleep
This commit is contained in:
parent
db46856117
commit
c7bb1768be
|
@ -12,6 +12,7 @@ in {
|
||||||
./power-profiles-daemon
|
./power-profiles-daemon
|
||||||
./upower.nix
|
./upower.nix
|
||||||
./acpi.nix
|
./acpi.nix
|
||||||
|
./systemd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
||||||
|
|
7
system/roles/laptop/power/systemd.nix
Normal file
7
system/roles/laptop/power/systemd.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
# /etc/systemd/sleep.conf
|
||||||
|
systemd.sleep.extraConfig = ''
|
||||||
|
# Configure `systemctl suspend-then-sleep` to enter hibernation after 3 hours of sleep.
|
||||||
|
HibernateDelaySec=10800
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue