diff --git a/hm/modules/linux/desktop-environment/hyprland/default.nix b/hm/modules/linux/desktop-environment/hyprland/default.nix index c8cff2e..8e2fe22 100644 --- a/hm/modules/linux/desktop-environment/hyprland/default.nix +++ b/hm/modules/linux/desktop-environment/hyprland/default.nix @@ -46,7 +46,7 @@ in }; screenlocker.useNvidiaCrashFix = lib.mkOption { type = lib.types.bool; - default = osConfig.liminalOS.system.graphics.nvidia.enable; + default = false; description = '' Whether to use a workaround for Hyprlock background blur not working on Nvidia-based machines. Before locking, a screenshot will be taken and placed at `/tmp/__hyprlock-monitor-screenshot.png`. ''; diff --git a/hm/modules/linux/desktop-environment/hyprland/utilities.nix b/hm/modules/linux/desktop-environment/hyprland/utilities.nix index a172fc1..5357528 100644 --- a/hm/modules/linux/desktop-environment/hyprland/utilities.nix +++ b/hm/modules/linux/desktop-environment/hyprland/utilities.nix @@ -38,7 +38,11 @@ in }; background = { monitor = cfg.screenlocker.monitor; - path = lib.mkIf cfg.screenlocker.useNvidiaCrashFix "/tmp/__hyprlock-monitor-screenshot.png"; + path = + if cfg.screenlocker.useNvidiaCrashFix then + "/tmp/__hyprlock-monitor-screenshot.png" + else + "screenshot"; blur_passes = 3; blur_size = 7; noise = 0.0117; diff --git a/reference/users/youwen/hm.nix b/reference/users/youwen/hm.nix index 4c60f0b..afedfcc 100644 --- a/reference/users/youwen/hm.nix +++ b/reference/users/youwen/hm.nix @@ -22,7 +22,6 @@ liminalOS = { utils.easyeffects.enable = true; - desktop.hyprland.screenlocker.useNvidiaCrashFix = true; }; programs.git = {