refactor(nix): move unfree packages module to options

This commit is contained in:
Mohammad Rafiq 2025-07-07 14:17:02 +08:00
parent 8c2b1dfc6e
commit 9403daff02
No known key found for this signature in database

View file

@ -1,7 +1,8 @@
{ lib, config, ... }:
let
inherit (builtins) elem;
inherit (lib) mkOption getName;
inherit (lib.options) mkOption;
inherit (lib.strings) getName;
inherit (lib.types) listOf str;
predicate = pkg: elem (getName pkg) config.allowedUnfreePackages;
in