treewide: use more lib.optionalString

This commit is contained in:
Felix Buehler 2023-03-19 21:44:31 +01:00
parent b392d9b827
commit 327b0cff7a
41 changed files with 89 additions and 95 deletions

View file

@ -10,10 +10,7 @@ let
check = x: (lib.types.package.check x) && (attrByPath ["meta" "isIbusEngine"] false x);
};
impanel =
if cfg.panel != null
then "--panel=${cfg.panel}"
else "";
impanel = optionalString (cfg.panel != null) "--panel=${cfg.panel}";
ibusAutostart = pkgs.writeTextFile {
name = "autostart-ibus-daemon";