toString the ports rather than breaking the ports
This commit is contained in:
parent
0cb24a843a
commit
0b7cb500fc
|
@ -76,19 +76,19 @@
|
|||
};
|
||||
tcpPort = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = "1027";
|
||||
default = 1027;
|
||||
description = "The TCP port to host the server on";
|
||||
};
|
||||
udpPort = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = "1027";
|
||||
default = 1027;
|
||||
description = "The UDP port to host the server on";
|
||||
};
|
||||
proximity = {
|
||||
type = lib.types.attrs;
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
example = "4433";
|
||||
example = 4433;
|
||||
description = "The UDP port to host the proximity chat server on";
|
||||
};
|
||||
certPath = lib.mkOption {
|
||||
|
@ -113,7 +113,7 @@
|
|||
Type = "simple";
|
||||
ExecStart = let
|
||||
proxRes = 5;
|
||||
in ''${self.packages.${system}.default}/bin/smo-server -t ${tcpPort} -u ${udpPort}'';
|
||||
in ''${self.packages.${system}.default}/bin/smo-server -t ${toString tcpPort} -u ${toString udpPort}'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue