From 276c08529a07c589b24832369f161b0a2d0e5d21 Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Thu, 27 Jul 2023 20:37:12 +0200 Subject: [PATCH] Disable laptop sleep when lid closed and connected to power --- hosts/ritual/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/ritual/configuration.nix b/hosts/ritual/configuration.nix index f7e4fe4..7480667 100644 --- a/hosts/ritual/configuration.nix +++ b/hosts/ritual/configuration.nix @@ -54,7 +54,7 @@ }; # Don't suspend when closed and plugged into power - services.logind.lidSwitchExternalPower = "ignore"; + services.logind.lidSwitchExternalPower = "lock"; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions