From 4dc478978eed6ee5d8028dec1abeee6668cc5a02 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 1 Jan 2021 14:00:32 +0100 Subject: [PATCH] Use lib.optionals instead of if then else [ ] --- users/simon/modules/programs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/programs.nix b/users/simon/modules/programs.nix index e20c44a..6c84e92 100644 --- a/users/simon/modules/programs.nix +++ b/users/simon/modules/programs.nix @@ -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 [ ]); + ]; }