about summary refs log tree commit diff
path: root/home/modules/programs
diff options
context:
space:
mode:
Diffstat (limited to 'home/modules/programs')
-rw-r--r--home/modules/programs/nixpkgs/default.nix35
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);
-}