add power switch handling to host specific config
This commit is contained in:
@@ -34,13 +34,6 @@
|
|||||||
# allow proprietary packages
|
# allow proprietary packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# fix power buttons
|
|
||||||
services.logind.settings.Login = {
|
|
||||||
HandlePowerKey = "suspend";
|
|
||||||
HandleLidSwitch = "suspend";
|
|
||||||
#HibernateDelaySec = "30min";
|
|
||||||
};
|
|
||||||
|
|
||||||
# power management
|
# power management
|
||||||
services.autoaspm.enable = true;
|
services.autoaspm.enable = true;
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
|
|||||||
@@ -22,6 +22,12 @@
|
|||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# fix power buttons
|
||||||
|
services.logind.settings.Login = {
|
||||||
|
HandlePowerKey = "suspend";
|
||||||
|
HandleLidSwitch = "suspend";
|
||||||
|
#HibernateDelaySec = "30min";
|
||||||
|
};
|
||||||
|
|
||||||
# boot (systemd is going on me)
|
# boot (systemd is going on me)
|
||||||
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
||||||
|
|||||||
Reference in New Issue
Block a user