nixos/terraria: adapt option types

(cherry picked from commit 137924cc96b589c8d335ff4a420b0e3bb208ac9e)
This commit is contained in:
Daniel Nagy 2021-05-25 19:25:07 +02:00 committed by github-actions[bot]
parent 33ce03a653
commit 24e35b8c44
1 changed files with 2 additions and 2 deletions

View File

@ -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).