modules/system: flatten

This commit is contained in:
Nikodem Rabuliński 2025-01-04 19:59:42 +01:00
parent 52c84814e8
commit 5c3f1dac68
14 changed files with 65 additions and 70 deletions

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

@ -0,0 +1,19 @@
{ config, lib, ... }:
{
_file = ./unfree.nix;
options = {
# TODO(maybe?): Allow other types and more customizability
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
);
};
}