{ lib, ... }: { # Preserve GPU allocations across suspend; EGL contexts otherwise fail on resume. hardware.nvidia = { powerManagement.enable = true; powerManagement.kernelSuspendNotifier = false; moduleParams.nvidia.NVreg_TemporaryFilePath = "/var/tmp"; }; services.displayManager.defaultSession = lib.mkForce "hyprland-uwsm"; }