From 3f18030ac8158d3eb50dd454c9d674a8c30ea659 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 16 Aug 2026 15:26:31 +0530 Subject: freezing on suspend fix + librewolf --- nixos/opt/nvidia.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nixos/opt') diff --git a/nixos/opt/nvidia.nix b/nixos/opt/nvidia.nix index 4373165..2c414f0 100644 --- a/nixos/opt/nvidia.nix +++ b/nixos/opt/nvidia.nix @@ -19,4 +19,15 @@ boot.kernelParams = [ "acpi_backlight=video" ]; boot.initrd.kernelModules = [ "nvidia" "hp_wmi" ]; services.xserver.videoDrivers = [ "nvidia" ]; + systemd.services.systemd-suspend.environment = { + SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; + }; + + systemd.services.systemd-hibernate.environment = { + SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; + }; + + systemd.services.systemd-hybrid-sleep.environment = { + SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; + }; } -- cgit v1.2.3