Standardize more paths and such

This commit is contained in:
Bun 2025-04-29 21:30:44 -04:00
parent dbd5ea69cd
commit def300827a
5 changed files with 12 additions and 8 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;