nix-config/hosts/common/global/power-button.nix

10 lines
155 B
Nix

{
inputs,
lib,
...
}: {
services.logind.extraConfig = ''
# don't shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
}