use optionals

This commit is contained in:
Daylin Morgan 2024-08-08 14:02:40 -05:00
parent 6de469a365
commit cf43fc941a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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 // {