refactor(nixos): derive Valheim world from server name
This commit is contained in:
@@ -31,13 +31,6 @@
|
|||||||
description = "Name shown for the Valheim server.";
|
description = "Name shown for the Valheim server.";
|
||||||
};
|
};
|
||||||
|
|
||||||
worldName = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = config.modules.services.games.valheim.serverName;
|
|
||||||
defaultText = lib.literalExpression "config.modules.services.games.valheim.serverName";
|
|
||||||
description = "Valheim world name.";
|
|
||||||
};
|
|
||||||
|
|
||||||
port = lib.mkOption {
|
port = lib.mkOption {
|
||||||
type = lib.types.port;
|
type = lib.types.port;
|
||||||
default = 2456;
|
default = 2456;
|
||||||
@@ -75,7 +68,7 @@
|
|||||||
"-port"
|
"-port"
|
||||||
(toString service.port)
|
(toString service.port)
|
||||||
"-world"
|
"-world"
|
||||||
service.worldName
|
service.serverName
|
||||||
"-savedir"
|
"-savedir"
|
||||||
service.stateDir
|
service.stateDir
|
||||||
"-password"
|
"-password"
|
||||||
|
|||||||
Reference in New Issue
Block a user