From 9f58f2bb5edd96e8b9da0b7e49a843033cb4a6e5 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 2 Aug 2024 19:02:10 -0400 Subject: [PATCH] base: improve logind config --- baseModules/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/baseModules/default.nix b/baseModules/default.nix index 50c14bdd..677c7b2f 100644 --- a/baseModules/default.nix +++ b/baseModules/default.nix @@ -60,11 +60,15 @@ self: {lib, ...}: { }; }; - logind.extraConfig = '' - # Don't shutdown when power button is short-pressed - HandlePowerKey=suspend - HandlePowerKeyLongPress=poweroff - ''; + logind = { + powerKey = "suspend"; + powerKeyLongPress = "poweroff"; + extraConfig = '' + # Don't shutdown when power button is short-pressed + HandlePowerKey=suspend + HandlePowerKeyLongPress=poweroff + ''; + }; openssh = { enable = true;