summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-01 09:16:50 +0200
committersils <sils@sils.li>2023-07-01 09:16:50 +0200
commit4427239f04eef2ba831d4c327c603836f7ede46d (patch)
treecc0124fd5e4ec4505a9a6bc1f6bd60a0695dd8ab /sys
parentFeat(host/thinklappi): Add hibernation (diff)
downloadnix-config-4427239f04eef2ba831d4c327c603836f7ede46d.tar.gz
nix-config-4427239f04eef2ba831d4c327c603836f7ede46d.zip
Feat(sys): Add systemd HibernateDelaySec
Diffstat (limited to '')
-rw-r--r--sys/default.nix1
-rw-r--r--sys/systemd/default.nix5
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/default.nix b/sys/default.nix
index 04fe5c9..2b5f9d7 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -5,6 +5,7 @@
     ./nix
     ./packages
     ./services
+    ./systemd
     ./users
   ];
 }
diff --git a/sys/systemd/default.nix b/sys/systemd/default.nix
new file mode 100644
index 0000000..2325e4c
--- /dev/null
+++ b/sys/systemd/default.nix
@@ -0,0 +1,5 @@
+{...}: {
+  systemd.sleep.extraConfig = ''
+    HibernateDelaySec=5m
+  '';
+}