feat: stop using workaround for hyprlock background

This commit is contained in:
Youwen Wu 2025-03-26 19:19:59 -07:00
parent 90ebd2e88b
commit 2de207aeff
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
3 changed files with 6 additions and 3 deletions

View file

@ -46,7 +46,7 @@ in
}; };
screenlocker.useNvidiaCrashFix = lib.mkOption { screenlocker.useNvidiaCrashFix = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = osConfig.liminalOS.system.graphics.nvidia.enable; default = false;
description = '' 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`. 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`.
''; '';

View file

@ -38,7 +38,11 @@ in
}; };
background = { background = {
monitor = cfg.screenlocker.monitor; 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_passes = 3;
blur_size = 7; blur_size = 7;
noise = 0.0117; noise = 0.0117;

View file

@ -22,7 +22,6 @@
liminalOS = { liminalOS = {
utils.easyeffects.enable = true; utils.easyeffects.enable = true;
desktop.hyprland.screenlocker.useNvidiaCrashFix = true;
}; };
programs.git = { programs.git = {