From 916ef793da66e32973a873bdf66cc166ba8ba7d9 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Thu, 9 Oct 2025 00:04:11 -0400 Subject: [PATCH] compat: fix `logind` settings config --- config/config.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/config.nix b/config/config.nix index faba432..7362dcb 100644 --- a/config/config.nix +++ b/config/config.nix @@ -31,11 +31,9 @@ in networking.networkmanager.enable = true; # Power button settings - services.logind = { - extraConfig = '' - HandlePowerKey=ignore - HandlePowerKeyLongPress=poweroff - ''; + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + HandlePowerKeyLongPress = "poweroff"; }; # Set your time zone.