From 24e35b8c44704dee6a8827bf6b04e0058d163f71 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Tue, 25 May 2021 19:25:07 +0200 Subject: [PATCH] nixos/terraria: adapt option types (cherry picked from commit 137924cc96b589c8d335ff4a420b0e3bb208ac9e) --- nixos/modules/services/games/terraria.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/games/terraria.nix b/nixos/modules/services/games/terraria.nix index 9e8e5ae8759..7312c7e6b63 100644 --- a/nixos/modules/services/games/terraria.nix +++ b/nixos/modules/services/games/terraria.nix @@ -42,7 +42,7 @@ in }; port = mkOption { - type = types.int; + type = types.port; default = 7777; description = '' Specifies the port to listen on. @@ -50,7 +50,7 @@ in }; maxPlayers = mkOption { - type = types.int; + type = types.ints.u8; default = 255; description = '' Sets the max number of players (between 1 and 255).