From 737a65a97d0490069cc66ba1ff698334fe1d4ae6 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Fri, 30 May 2025 00:43:18 -0600 Subject: [PATCH] Better stability --- modules/services.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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