power profiles
This commit is contained in:
15
sw.nix
15
sw.nix
@@ -63,10 +63,6 @@
|
|||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Power
|
|
||||||
services.tlp.enable = true;
|
|
||||||
services.auto-cpufreq.enable = true;
|
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
@@ -92,10 +88,13 @@
|
|||||||
# Suspend / logind behavior
|
# Suspend / logind behavior
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
services.logind.lidSwitch = "suspend";
|
services.logind.lidSwitch = "suspend";
|
||||||
services.logind.extraConfig = ''
|
services.logind.settings = {
|
||||||
HandleLidSwitchExternalPower=suspend
|
Login = {
|
||||||
HandleLidSwitchDocked=ignore
|
HandleLidSwitch = "suspend";
|
||||||
'';
|
HandleLidSwitchExternalPower = "suspend";
|
||||||
|
HandleLidSwitchDocked = "ignore";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user