Significant progress

This commit is contained in:
Jan Bulthuis committed 2024-07-18 13:48:49 +02:00
1 parent f80047be52
commit 5f66c1c631
28 files changed
+264 -102

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.unfree;
in {
options.modules.unfree = {
enable = mkEnableOption "unfree";
allowedPackages = mkOption {
type = types.listOf types.str;
default = [];
};
};
config = mkIf cfg.enable {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (getName pkg) cfg.allowedPackages;
};
}