Initial commit
This commit is contained in:
commit
1518f7007b
39 changed files with 1779 additions and 0 deletions
14
m/unfree.nix
Normal file
14
m/unfree.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
unfree = config.maid.unfree;
|
||||
types = lib.types;
|
||||
in
|
||||
{
|
||||
options.maid.unfree = lib.mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = "unfree software list";
|
||||
default = [];
|
||||
};
|
||||
|
||||
config.nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.maid.unfree;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue