diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-10-27 23:47:17 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-10-27 23:50:34 +0300 |
| commit | 58f992a0ffa9c35c9c49b56a9e2f65489f180079 (patch) | |
| tree | d91ffdb337ab8bd54227f444c480a6c988e59be5 /nixos | |
| parent | 81bb96398183cd90a2965192c33b8501c8910ec2 (diff) | |
fix(powerButton): update with the new options
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/nixosModules/powerbutton.nix | 10 |
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"; + }; }; } |
