Make use of 'lib.optionals'.
This commit is contained in:
parent
097981466e
commit
46cb4d8acc
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
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 {};
|
gitpkgs = import /nixpkgs/default.nix {};
|
||||||
|
|
||||||
# Programms I'm likely to want on every machine and/or may execute as root
|
# Programms I'm likely to want on every machine and/or may execute as root
|
||||||
|
|
Loading…
Reference in a new issue