From 855722c6bfea54e952af6d5c87d8756d964b4a0f Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Fri, 2 Jul 2021 02:17:07 +0200 Subject: [PATCH] Don't suspend laptop when closing lid --- hosts/froidmpa-laptop/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/froidmpa-laptop/configuration.nix b/hosts/froidmpa-laptop/configuration.nix index e0edb17..6b23b11 100644 --- a/hosts/froidmpa-laptop/configuration.nix +++ b/hosts/froidmpa-laptop/configuration.nix @@ -92,5 +92,7 @@ # Enable touchpad support. services.xserver.libinput.enable = true; + services.logind.lidSwitch = "ignore"; + system.stateVersion = "21.05"; # Did you read the comment? }