Make use of 'lib.optionals'.

This commit is contained in:
Kevin Baensch 2019-04-14 18:37:31 +02:00
parent 097981466e
commit 46cb4d8acc

View file

@ -6,7 +6,7 @@
with lib;
let
optPkgs = package: pkgstring: if elem pkgstring config.machine.pkgs then package else [];
optPkgs = package: pkgstring: optionals (elem pkgstring config.machine.pkgs) package;
gitpkgs = import /nixpkgs/default.nix {};
# Programms I'm likely to want on every machine and/or may execute as root