unl0kr: simplify this code

This commit is contained in:
Colin 2024-03-03 04:43:44 +00:00
parent 6b45589e54
commit 7933ef41a2

View File

@ -147,7 +147,7 @@ in
};
# unl0kr is run as root, and especially with sandboxing, needs to be installed for root if expected to work.
sane.programs.unl0kr.enableFor.system = lib.mkIf (builtins.any (en: en)(builtins.attrValues config.sane.programs.unl0kr.enableFor.user)) true;
sane.programs.unl0kr.enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true;
environment.pathsToLink = lib.mkIf cfg.enabled [
# so we can figure out what to auto-launch