Use lib.optionals instead of if then else [ ]

This commit is contained in:
Simon Bruder 2021-01-01 14:00:32 +01:00
parent dc3a5f5d2e
commit 4dc478978e
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -153,7 +153,7 @@ in
# documents # documents
mupdf # document (pdf) viewer and tools mupdf # document (pdf) viewer and tools
] ++ (if config.sbruder.gui.enable then [ ] ++ lib.optionals config.sbruder.gui.enable [
# communication # communication
claws-mail # email client that looks ugly but just works claws-mail # email client that looks ugly but just works
firefox-wayland # the least bad browser firefox-wayland # the least bad browser
@ -206,5 +206,5 @@ in
wl-clipboard # not really gui, but cli tool to manage wayland clipboard wl-clipboard # not really gui, but cli tool to manage wayland clipboard
wxhexeditor # hex editor wxhexeditor # hex editor
xfce.thunar # graphical file manager xfce.thunar # graphical file manager
] else [ ]); ];
} }