Applied formatting
This commit is contained in:
1 parent
e1b1e7cc38
commit
16de891fc7
69 files changed
+997
-635
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user