1
0
Fork 0

Make use of 'lib.optionals'.

This commit is contained in:
Kevin Baensch 2019-04-14 18:37:31 +02:00
parent 097981466e
commit 46cb4d8acc
1 changed files with 1 additions and 1 deletions

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