diff --git a/modules/services.nix b/modules/services.nix index 52c9897..79f52c8 100644 --- a/modules/services.nix +++ b/modules/services.nix @@ -4,11 +4,13 @@ # Enable the OpenSSH daemon services.openssh.enable = true; - # Sleep configuration + # Sleep configuration optimized for NVIDIA systemd.sleep.extraConfig = '' - AllowSuspend=no + AllowSuspend=yes AllowHibernation=no AllowHybridSleep=no AllowSuspendThenHibernate=no ''; + + systemd.services.display-manager.restartIfChanged = true; } \ No newline at end of file