mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
power key should not destroy my work :|
This commit is contained in:
parent
b716a1920f
commit
5c58bc7eb6
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,12 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Power key should not shut off computer by defaultPower key shuts of
|
||||
services.logind.extraConfig = ''
|
||||
# Suspend when power button is pressed
|
||||
HandlePowerKey=suspend
|
||||
'';
|
||||
|
||||
# Hyprland
|
||||
programs = {
|
||||
hyprland = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue