mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
nixos/terraria: adapt option types
This commit is contained in:
parent
941fd008ed
commit
137924cc96
|
@ -42,7 +42,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.int;
|
type = types.port;
|
||||||
default = 7777;
|
default = 7777;
|
||||||
description = ''
|
description = ''
|
||||||
Specifies the port to listen on.
|
Specifies the port to listen on.
|
||||||
|
@ -50,7 +50,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
maxPlayers = mkOption {
|
maxPlayers = mkOption {
|
||||||
type = types.int;
|
type = types.ints.u8;
|
||||||
default = 255;
|
default = 255;
|
||||||
description = ''
|
description = ''
|
||||||
Sets the max number of players (between 1 and 255).
|
Sets the max number of players (between 1 and 255).
|
||||||
|
|
Loading…
Reference in a new issue