From a3115707dd1563cfdab75ae716a33aeba4c651ce Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 9 Apr 2014 00:02:20 +0200 Subject: Add environment.gnome3.excludePackages Give the user a full desktop, and the possibility to exclude non-base packages from the default list of packages. --- lib/lists.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/lists.nix') diff --git a/lib/lists.nix b/lib/lists.nix index 71a897027962b..6c7773304defe 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -226,4 +226,7 @@ in rec { deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y; crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f]; + + # List difference, xs - ys. Removes elements of ys from xs. + difference = xs: ys: filter (y: !(builtins.elem y ys)) xs; } -- cgit 1.4.1