From 6e0076c7efc431c4ded57c4593bf453ba87675d8 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Sun, 6 Oct 2024 15:57:49 +0200 Subject: [PATCH] system/services/logind: suspend on lid close --- system/default.nix | 1 + system/services/logind.nix | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 system/services/logind.nix diff --git a/system/default.nix b/system/default.nix index a236d19..0d5096b 100644 --- a/system/default.nix +++ b/system/default.nix @@ -23,6 +23,7 @@ let ./services/power.nix ./services/brightness.nix ./services/keyd.nix + ./services/logind.nix ]; in { inherit desktop laptop; diff --git a/system/services/logind.nix b/system/services/logind.nix new file mode 100644 index 0000000..d7b9b86 --- /dev/null +++ b/system/services/logind.nix @@ -0,0 +1,5 @@ +{ + services.logind = { + lidSwitch = "suspend"; + }; +}