summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-08-13 13:42:54 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-08-13 13:42:54 -0400
commit47942efb24451d7eec7fc1585de7fbe9608e6484 (patch)
treef3e83c03725b679b98d50a261b0483a27ff29309 /machines
parent32333668fe2f4374ac9c90862792bdc62148a483 (diff)
Suspend on power key on dex
Diffstat (limited to 'machines')
-rw-r--r--machines/dex.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/machines/dex.nix b/machines/dex.nix
index dd9df97..b06d450 100644
--- a/machines/dex.nix
+++ b/machines/dex.nix
@@ -15,6 +15,10 @@ with lib;
networking.firewall.allowedTCPPorts = [3979];
networking.firewall.allowedUDPPorts = [3979];
+ services.logind.extraConfig = ''
+ HandlePowerKey=suspend
+ '';
+
nix.gc.persistent = false;
networking.networkmanager.enable = true;
networking.hostName = "dex";