fix(nixos): keep palworld server stopped by default

This commit was merged in pull request #50.
This commit is contained in:
2026-09-15 19:03:00 -04:00
parent aa1a330ef3
commit fca37666d3
4 changed files with 22 additions and 2 deletions

View File

@@ -50,6 +50,12 @@ in
description = "Public IP address advertised by the Palworld server.";
};
autoStart = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Start the Palworld server after the guest reaches network readiness.";
};
passwordSecret = lib.mkOption {
type = lib.types.str;
default = "services/game-servers/password";
@@ -82,7 +88,7 @@ in
guests.palworld = {
interior.modules.services.games.palworld = {
enable = true;
inherit (cfg) serverName port publicIP;
inherit (cfg) serverName port publicIP autoStart;
inherit steamDir installDir stateDir;
passwordFile = "/run/secrets/${cfg.passwordSecret}";
adminPasswordFile = "/run/secrets/${cfg.adminPasswordSecret}";