nixos/terraria: adapt option types

This commit is contained in:
Daniel Nagy 2021-05-25 19:25:07 +02:00
parent 941fd008ed
commit 137924cc96
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671

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