move allowedUnfreePackages into my namespace

This commit is contained in:
müde 2026-05-03 16:32:26 +02:00
parent d2acd47e71
commit 63ce7eac05
6 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
{
options.allowedUnfreePackages = lib.mkOption {
options.my.allowedUnfreePackages = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [ "steam" ];
@ -10,7 +10,7 @@
nixpkgs.config = {
# https://github.com/NixOS/nixpkgs/issues/197325#issuecomment-1579420085
allowUnfreePredicate = lib.mkDefault (
pkg: builtins.elem (lib.getName pkg) config.allowedUnfreePackages
pkg: builtins.elem (lib.getName pkg) config.my.allowedUnfreePackages
);
};
};