diff --git a/lib/packages.nix b/lib/packages.nix new file mode 100644 index 0000000..56c94a5 --- /dev/null +++ b/lib/packages.nix @@ -0,0 +1,9 @@ +{ nixpkgs, ... }: + +let + inherit (builtins) any filter; + inherit (nixpkgs.lib.strings) getName; +in { + remove = nameList: pkgList: + filter (pkg: !any (elem: getName pkg == elem) nameList) pkgList; +}