From 7bca399233fb18b47f2ac5c0674c6b332f5c3ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 1 Jan 2023 18:18:05 +0100 Subject: [PATCH] feat: logind config --- hosts/neodymium/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/neodymium/configuration.nix b/hosts/neodymium/configuration.nix index 28fc374..2e60ef6 100644 --- a/hosts/neodymium/configuration.nix +++ b/hosts/neodymium/configuration.nix @@ -76,6 +76,14 @@ in { }; }; + # logind configuration + services.logind = { + lidSwitch = "ignore"; + extraConfig = '' + HandlePowerKey=suspend + ''; + }; + # internationalisation time.timeZone = "Europe/Paris"; i18n.defaultLocale = "en_DK.UTF-8";