refactor(nixos): derive Valheim world from server name
This commit is contained in:
@@ -31,13 +31,6 @@
|
||||
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 {
|
||||
type = lib.types.port;
|
||||
default = 2456;
|
||||
@@ -75,7 +68,7 @@
|
||||
"-port"
|
||||
(toString service.port)
|
||||
"-world"
|
||||
service.worldName
|
||||
service.serverName
|
||||
"-savedir"
|
||||
service.stateDir
|
||||
"-password"
|
||||
|
||||
Reference in New Issue
Block a user