Use lib.optionals instead of if then else [ ]

pull/30/head
Simon Bruder 2021-01-01 14:00:32 +01:00
parent dc3a5f5d2e
commit 4dc478978e
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 2 additions and 2 deletions

View File

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