mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
treewide: use lib.optional instead of 'then []'
This commit is contained in:
parent
b63179691f
commit
bec27fabee
13 changed files with 15 additions and 20 deletions
|
@ -31,7 +31,7 @@ evalConfigArgs@
|
|||
, prefix ? []
|
||||
, lib ? import ../../lib
|
||||
, extraModules ? let e = builtins.getEnv "NIXOS_EXTRA_MODULE_PATH";
|
||||
in if e == "" then [] else [(import e)]
|
||||
in lib.optional (e != "") (import e)
|
||||
}:
|
||||
|
||||
let pkgs_ = pkgs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue