refactor(nixos): derive Valheim world from server name

This commit is contained in:
2026-09-10 08:14:55 -04:00
parent 35de27d96e
commit 7972549230

View File

@@ -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"