chore: rename useNvidiaCrashFix -> useCrashFix

This commit is contained in:
Youwen Wu 2025-04-08 13:08:34 -07:00
parent a424490090
commit e87ff22643
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
2 changed files with 5 additions and 9 deletions

View file

@ -44,11 +44,11 @@ in
Whether to set up Hyprlock for screen locking.
'';
};
screenlocker.useNvidiaCrashFix = lib.mkOption {
screenlocker.useCrashFix = lib.mkOption {
type = lib.types.bool;
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`.
Whether to use a workaround for Hyprlock background blur not working on some machines. Before locking, a screenshot will be taken and placed at `/tmp/__hyprlock-monitor-screenshot.png`.
'';
};
screenlocker.monitor = lib.mkOption {
@ -229,8 +229,7 @@ in
assertions = [
{
assertion =
!cfg.screenlocker.useNvidiaCrashFix
|| (cfg.screenlocker.useNvidiaCrashFix && cfg.screenlocker.monitor != null);
!cfg.screenlocker.useCrashFix || (cfg.screenlocker.useCrashFix && cfg.screenlocker.monitor != null);
message = "To use the Nvidia crash fix, you must set screenlocker.monitor to the monitor you want to use as the lock screen that blurs! Use `hyprctl monitors` to determine the monitor codes (should be something like DP-1, HDMI-A-1, etc).";
}
];