mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
treewide: use more lib.optionalString
This commit is contained in:
parent
b392d9b827
commit
327b0cff7a
41 changed files with 89 additions and 95 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue