[TASK] Disable standby
This commit is contained in:
parent
264f96f75e
commit
a3199cabaa
@ -4,12 +4,9 @@
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
powerManagement.enable = true;
|
||||
nvidiaPersistenced = true;
|
||||
};
|
||||
|
||||
boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.graphics = {
|
||||
|
||||
@ -79,9 +79,8 @@
|
||||
services.displayManager.gdm.autoSuspend = false;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
# After wakeup wait 3 minutes before going a new suspend is possible,
|
||||
# to prevent GNOME's accumulated idle-timer suspends immediately.
|
||||
services.logind.settings.Login.HoldoffTimeoutUSec = "3min";
|
||||
services.logind.settings.Login.HandleSuspendKey = "ignore";
|
||||
services.logind.settings.Login.IdleAction = "ignore";
|
||||
|
||||
environment.gnome.excludePackages = with pkgs; [
|
||||
gnome-photos
|
||||
|
||||
@ -34,8 +34,8 @@
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/power" = {
|
||||
power-button-action = "interactive";
|
||||
sleep-inactive-ac-timeout = 600;
|
||||
sleep-inactive-ac-type = "suspend";
|
||||
sleep-inactive-ac-timeout = 0;
|
||||
sleep-inactive-ac-type = "nothing";
|
||||
};
|
||||
"org/gnome/shell/keybindings" = {
|
||||
show-screenshot-ui = ["<Shift><Alt>5"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user