Skip to content

Commit

Permalink
Prevent accidental shutdowns...
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed May 28, 2024
1 parent 8813e9c commit 69e0d0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
};
};

# don’t shutdown when power button is short-pressed
services.logind.extraConfig = ''
HandlePowerKey=ignore
'';

environment.systemPackages = with pkgs; [
git
neofetch
Expand Down

0 comments on commit 69e0d0d

Please sign in to comment.