aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-10-27 23:47:17 +0300
committerspl3g <spleefer6@yandex.ru>2025-10-27 23:50:34 +0300
commit58f992a0ffa9c35c9c49b56a9e2f65489f180079 (patch)
treed91ffdb337ab8bd54227f444c480a6c988e59be5
parent81bb96398183cd90a2965192c33b8501c8910ec2 (diff)
fix(powerButton): update with the new options
-rw-r--r--nixos/nixosModules/powerbutton.nix10
1 files changed, 5 insertions, 5 deletions
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";
+ };
};
}