mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
use optionals
This commit is contained in:
parent
52fb1204d6
commit
fc0f011be5
1 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,7 @@ let
|
||||||
mkOption
|
mkOption
|
||||||
literalExpression
|
literalExpression
|
||||||
types
|
types
|
||||||
|
optionals
|
||||||
;
|
;
|
||||||
cfg = config.oizys.nix-ld;
|
cfg = config.oizys.nix-ld;
|
||||||
|
|
||||||
|
@ -103,8 +104,7 @@ in
|
||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
libs =
|
libs = defaultLibraries ++ cfg.extra-libraries ++ (optionals cfg.overkill.enable overkillLibraries);
|
||||||
defaultLibraries ++ cfg.extra-libraries ++ (if cfg.overkill.enable then overkillLibraries else [ ]);
|
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
programs.nix-ld = enabled // {
|
programs.nix-ld = enabled // {
|
||||||
|
|
Loading…
Reference in a new issue