nixos/minetest-server: Fix port coercion

Fix coercion of minetest-server port.
This commit is contained in:
Anders Christiansen Sørby 2021-02-25 18:42:35 +01:00
parent d8fd467095
commit a4cbbc027f
No known key found for this signature in database
GPG Key ID: 1486C914F8AB79AA

View File

@ -4,7 +4,7 @@ with lib;
let let
cfg = config.services.minetest-server; cfg = config.services.minetest-server;
flag = val: name: if val != null then "--${name} ${val} " else ""; flag = val: name: if val != null then "--${name} ${toString val} " else "";
flags = [ flags = [
(flag cfg.gameId "gameid") (flag cfg.gameId "gameid")
(flag cfg.world "world") (flag cfg.world "world")