From 58f992a0ffa9c35c9c49b56a9e2f65489f180079 Mon Sep 17 00:00:00 2001 From: spl3g Date: Mon, 27 Oct 2025 23:47:17 +0300 Subject: fix(powerButton): update with the new options --- nixos/nixosModules/powerbutton.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nixos/nixosModules') diff --git a/nixos/nixosModules/powerbutton.nix b/nixos/nixosModules/powerbutton.nix index fdf1ceb..92ad60c 100644 --- a/nixos/nixosModules/powerbutton.nix +++ b/nixos/nixosModules/powerbutton.nix @@ -5,10 +5,10 @@ pbutton.disable = lib.mkEnableOption "enable pbutton"; }; config = lib.mkIf config.pbutton.disable { - services.logind.extraConfig = '' - HandlePowerKey=ignore - HandleLidSwitch=suspend - HandleLidSwitchExternalPower=suspend - ''; + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + HandleLidSwitch = "suspend"; + HandleLidSwitchExternalPower = "suspend"; + }; }; } -- cgit v1.2.3