From 2a9cccc98bd1a8b0019b858aa4f9c21c7efb8b0b Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 15 Jan 2024 13:21:14 +0900 Subject: project!: disambiguate nix,nixpkgs options --- home/modules/programs/nixpkgs/default.nix | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 home/modules/programs/nixpkgs/default.nix (limited to 'home/modules/programs/nixpkgs') 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); -} -- cgit 1.4.1