mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: play along with deprecation of services.logind.extraConfig
This commit is contained in:
parent
3811e2fae0
commit
6461bc5f27
1 changed files with 3 additions and 4 deletions
|
|
@ -3,10 +3,9 @@
|
||||||
services = {
|
services = {
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
};
|
};
|
||||||
services.logind.extraConfig = ''
|
services.logind.settings.Login = {
|
||||||
# don’t shutdown when power button is short-pressed
|
HandlePowerKey = "ignore"; # don’t shutdown when power button is short-pressed
|
||||||
HandlePowerKey=ignore
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
# To prevent getting stuck at shutdown.
|
# To prevent getting stuck at shutdown.
|
||||||
# systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Deprecated now
|
# systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Deprecated now
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue