Fix unfree if no input is provided, more jupiter changes

This commit is contained in:
Bun 2025-04-23 16:54:14 -04:00
parent 656a067a33
commit d4da3e84e5
5 changed files with 42 additions and 24 deletions

View file

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