diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-08-13 13:42:54 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-08-13 13:42:54 -0400 |
commit | 47942efb24451d7eec7fc1585de7fbe9608e6484 (patch) | |
tree | f3e83c03725b679b98d50a261b0483a27ff29309 /machines | |
parent | 32333668fe2f4374ac9c90862792bdc62148a483 (diff) |
Suspend on power key on dex
Diffstat (limited to 'machines')
-rw-r--r-- | machines/dex.nix | 4 |
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"; |