Systemd/logind: Difference between revisions

J3h1 (talk | contribs)
m Update from deprecated `services.logind.extraConfig` to `services.logind.settings.Login`
Hb (talk | contribs)
m Power Button settings have been renamed
Line 19: Line 19:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.logind.powerKey = "suspend";
services.logind.settings.Login.HandlePowerKey = "suspend";
</syntaxhighlight>
</syntaxhighlight>


Line 28: Line 28:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.logind.powerKey = "ignore";
services.logind.settings.Login.HandlePowerKey = "ignore";
</syntaxhighlight>
</syntaxhighlight>


Line 40: Line 40:


<syntaxhighlight lang="nixos">
<syntaxhighlight lang="nixos">
services.logind.rebootKey = "ignore";
services.logind.settings.Login.HandleRebootKey = "ignore";
services.logind.suspendKey = "ignore";
services.logind.settings.Login.HandleSuspendKey = "ignore";
services.logind.hibernateKey = "ignore";
services.logind.settings.Login.HandleHibernateKey = "ignore";
</syntaxhighlight>
</syntaxhighlight>