From 0b7cb500fcabb6bab8e927385953cd08b816d8b1 Mon Sep 17 00:00:00 2001 From: Aubrey Taylor Date: Sun, 22 Dec 2024 01:11:05 -0600 Subject: [PATCH] toString the ports rather than breaking the ports --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 9992d0a..7ea9993 100644 --- a/flake.nix +++ b/flake.nix @@ -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}''; }; }; };