mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
disable power button
This commit is contained in:
parent
bb464ba177
commit
68b5ece251
1 changed files with 4 additions and 0 deletions
|
|
@ -6,4 +6,8 @@
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
};
|
};
|
||||||
|
services.logind.extraConfig = ''
|
||||||
|
# don’t shutdown when power button is short-pressed
|
||||||
|
HandlePowerKey=ignore
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue