mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
24 lines
751 B
Nix
24 lines
751 B
Nix
{
|
|
# A physical desktop is always available for local and remote work. Disable
|
|
# every system sleep path; screen blanking while locked is handled by
|
|
# services.swayidle in the graphical session.
|
|
systemd.sleep.settings.Sleep = {
|
|
AllowSuspend = true;
|
|
AllowHibernation = false;
|
|
AllowHybridSleep = false;
|
|
AllowSuspendThenHibernate = false;
|
|
};
|
|
|
|
services.logind.settings.Login.IdleAction = "ignore";
|
|
|
|
# Keep the CPU policy at the highest-performance governor. Hardware may
|
|
# still manage turbo/thermal limits, but it will not select a power-saving
|
|
# governor.
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
|
|
services.displayManager = {
|
|
defaultSession = "labwc";
|
|
ly.settings.default_session = "labwc";
|
|
};
|
|
}
|