diff --git a/configuration.nix b/configuration.nix index 501c0a4..43af3bf 100644 --- a/configuration.nix +++ b/configuration.nix @@ -24,6 +24,14 @@ logEvents = true; }; + services.logind = { + lidSwitch = "suspend"; + lidSwitchExternalPower = "ignore"; + extraConfig = '' + HandlePowerKey=suspend + ''; + }; + services.xserver = { enable = true; windowManager.i3.enable = true;