fix(nixos): deploy from source checkout

Replace target-checkout deployment with source-built closure import and activation. Allow SteamCMD game services to stay configured without auto-starting, and disable Palworld auto-start on Pikachu.
This commit is contained in:
2026-09-15 17:07:33 -04:00
parent 4b3ca27637
commit b7e43b8647
7 changed files with 82 additions and 66 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 during normal boot.";
};
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}";