diff options
author | sefidel <contact@sefidel.net> | 2024-01-15 13:21:14 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-15 13:21:14 +0900 |
commit | 2a9cccc98bd1a8b0019b858aa4f9c21c7efb8b0b (patch) | |
tree | f01a046eaea71bce6021bd9c9b8c36930696a771 /home/modules/programs/nixpkgs/default.nix | |
parent | 65700539ea4bb6866fdd08b69eca29a19d19a3fc (diff) | |
download | nixrc-2a9cccc98bd1a8b0019b858aa4f9c21c7efb8b0b.tar.gz nixrc-2a9cccc98bd1a8b0019b858aa4f9c21c7efb8b0b.zip |
project!: disambiguate nix,nixpkgs options
Diffstat (limited to 'home/modules/programs/nixpkgs/default.nix')
-rw-r--r-- | home/modules/programs/nixpkgs/default.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/home/modules/programs/nixpkgs/default.nix b/home/modules/programs/nixpkgs/default.nix deleted file mode 100644 index 3220844..0000000 --- a/home/modules/programs/nixpkgs/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, lib, ... }: - -let - allowedUnf = config.nixpkgs.allowedUnfree; - allowedIns = config.nixpkgs.allowedInsecure; -in - -{ - options.nixpkgs.allowedUnfree = lib.mkOption { - type = lib.types.listOf lib.types.str; - default = [ ]; - description = '' - Allows for unfree packages by their name. - ''; - }; - - options.nixpkgs.allowedInsecure = lib.mkOption { - type = lib.types.listOf lib.types.str; - default = [ ]; - description = '' - Allows for insercure packages by their name. - ''; - }; - - - config.nixpkgs.config.allowUnfreePredicate = - if (allowedUnf == [ ]) - then (_: false) - else (pkg: __elem (lib.getName pkg) allowedUnf); - - config.nixpkgs.config.allowInsecurePredicate = - if (allowedIns == [ ]) - then (_: false) - else (pkg: __elem (lib.getName pkg) allowedIns); -} |