From 79725492307c4770d8a5d40136509a9e03338295 Mon Sep 17 00:00:00 2001 From: alexion Date: Thu, 10 Sep 2026 08:14:55 -0400 Subject: [PATCH] refactor(nixos): derive Valheim world from server name --- configs/nixos/modules/services/games/valheim.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/configs/nixos/modules/services/games/valheim.nix b/configs/nixos/modules/services/games/valheim.nix index 3f30922..b73c0c9 100644 --- a/configs/nixos/modules/services/games/valheim.nix +++ b/configs/nixos/modules/services/games/valheim.nix @@ -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"