summaryrefslogtreecommitdiff
path: root/machines/firelink.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/firelink.nix')
-rw-r--r--machines/firelink.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/machines/firelink.nix b/machines/firelink.nix
index dc85e3f..1e93c6b 100644
--- a/machines/firelink.nix
+++ b/machines/firelink.nix
@@ -16,6 +16,12 @@ in {
# Don't run gc on startup.
nix.gc.persistent = false;
+ services.logind.extraConfig = ''
+ HandlePowerKey=suspend
+ IdleAction=suspend
+ IdleActionSec=30m
+ '';
+
systemd.watchdog.runtimeTime = "30s";
services.fwupd.enable = true;
orbekk.simple-firewall.allowedTCPPorts = [