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