settei/modules/home/unfree.nix
Nikodem Rabuliński ac51509e25
All checks were successful
/ check (pull_request) Successful in 3m29s
flake.lock: update
2025-03-20 23:05:03 +01:00

19 lines
418 B
Nix

# Copy of modules/system/unfree.nix
args@{ config, lib, ... }:
{
_file = ./unfree.nix;
options = {
settei.unfree.allowedPackages =
with lib;
mkOption {
type = types.listOf types.str;
};
};
config = lib.mkIf (!args ? osConfig) {
nixpkgs.config.allowUnfreePredicate = lib.mkForce (
pkg: builtins.elem (lib.getName pkg) config.settei.unfree.allowedPackages
);
};
}