modules/home/unfree: init

This commit is contained in:
Nikodem Rabuliński 2025-01-05 01:01:56 +01:00
parent b9c7bda91c
commit bfddcef2fd
4 changed files with 35 additions and 2 deletions

19
modules/home/unfree.nix Normal file
View file

@ -0,0 +1,19 @@
# Copy of modules/system/unfree.nix
{ config, lib, ... }:
{
_file = ./unfree.nix;
options = {
settei.unfree.allowedPackages =
with lib;
mkOption {
type = types.listOf types.str;
};
};
config = {
nixpkgs.config.allowUnfreePredicate = lib.mkForce (
pkg: builtins.elem (lib.getName pkg) config.settei.unfree.allowedPackages
);
};
}