Use lib.optionals instead of if then else [ ]
This commit is contained in:
parent
dc3a5f5d2e
commit
4dc478978e
|
@ -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 [ ]);
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue