Applied formatting

This commit is contained in:
Jan Bulthuis committed 2024-07-19 14:00:55 +02:00
1 parent e1b1e7cc38
commit 16de891fc7
69 files changed
+997 -635

No files matched your search

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