summary refs log tree commit diff
path: root/nixos/modules/services/games/freeciv.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/games/freeciv.nix')
-rw-r--r--nixos/modules/services/games/freeciv.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/games/freeciv.nix b/nixos/modules/services/games/freeciv.nix
index f33ea5c08a2..bba27ae4cb5 100644
--- a/nixos/modules/services/games/freeciv.nix
+++ b/nixos/modules/services/games/freeciv.nix
@@ -16,7 +16,7 @@ let
     generate = name: value:
       let mkParam = k: v:
             if v == null then []
-            else if isBool v then if v then [("--"+k)] else []
+            else if isBool v then optional v ("--"+k)
             else [("--"+k) v];
           mkParams = k: v: map (mkParam k) (if isList v then v else [v]);
       in escapeShellArgs (concatLists (concatLists (mapAttrsToList mkParams value)));