Systemd/logind: Difference between revisions
m Update from deprecated `services.logind.extraConfig` to `services.logind.settings.Login` |
m Power Button settings have been renamed |
||
| Line 19: | Line 19: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.logind. | services.logind.settings.Login.HandlePowerKey = "suspend"; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 28: | Line 28: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.logind. | services.logind.settings.Login.HandlePowerKey = "ignore"; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 40: | Line 40: | ||
<syntaxhighlight lang="nixos"> | <syntaxhighlight lang="nixos"> | ||
services.logind. | services.logind.settings.Login.HandleRebootKey = "ignore"; | ||
services.logind. | services.logind.settings.Login.HandleSuspendKey = "ignore"; | ||
services.logind. | services.logind.settings.Login.HandleHibernateKey = "ignore"; | ||
</syntaxhighlight> | </syntaxhighlight> | ||