modules/home/unfree: init
This commit is contained in:
parent
b9c7bda91c
commit
bfddcef2fd
4 changed files with 35 additions and 2 deletions
19
modules/home/unfree.nix
Normal file
19
modules/home/unfree.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Copy of modules/system/unfree.nix
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
_file = ./unfree.nix;
|
||||
|
||||
options = {
|
||||
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
|
||||
);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue