Split up more nix functions

This commit is contained in:
Bun 2025-03-24 04:28:36 -04:00
parent 0b8d1f4eaf
commit b7a5fc7197
6 changed files with 48 additions and 50 deletions

View file

@ -0,0 +1,8 @@
{ config, lib, ... }:
{
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
};
config.nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages;
}