From 4f19d5987cd75136c08990d8d08c6b3260e1c9aa Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 9 Sep 2026 21:54:44 -0400 Subject: [PATCH] refactor(nixos): rely on SteamCMD app metadata --- configs/nixos/hosts/pikachu/default.nix | 1 - configs/nixos/modules/services/steamcmd.nix | 9 --------- 2 files changed, 10 deletions(-) diff --git a/configs/nixos/hosts/pikachu/default.nix b/configs/nixos/hosts/pikachu/default.nix index 66e677b..11124a5 100644 --- a/configs/nixos/hosts/pikachu/default.nix +++ b/configs/nixos/hosts/pikachu/default.nix @@ -71,7 +71,6 @@ steamDir = "/pikachu/data/steamcmd"; serviceName = "valheim"; appId = 896660; - runtimeAppId = 892970; installDir = "/pikachu/data/servers/valheim/main"; stateDir = "/pikachu/media/games/servers/valheim/main"; executable = "./valheim_server.x86_64"; diff --git a/configs/nixos/modules/services/steamcmd.nix b/configs/nixos/modules/services/steamcmd.nix index 1af7a57..a40af94 100644 --- a/configs/nixos/modules/services/steamcmd.nix +++ b/configs/nixos/modules/services/steamcmd.nix @@ -7,7 +7,6 @@ let cfg = config.modules.services.steamcmd; - runtimeAppId = if cfg.runtimeAppId == null then cfg.appId else cfg.runtimeAppId; libraryPath = lib.concatStringsSep ":" cfg.libraryDirs; prepareScript = pkgs.writeShellScript "steamcmd-${cfg.serviceName}-prepare" '' @@ -37,7 +36,6 @@ let set -eu cd ${lib.escapeShellArg cfg.installDir} - export SteamAppId=${lib.escapeShellArg (toString runtimeAppId)} ${lib.optionalString (cfg.libraryDirs != [ ]) ''export LD_LIBRARY_PATH=${lib.escapeShellArg libraryPath}:''${LD_LIBRARY_PATH-}''} exec ${lib.getExe pkgs.steam-run} ${lib.escapeShellArg cfg.executable} ${lib.escapeShellArgs cfg.arguments} ''; @@ -85,13 +83,6 @@ in description = "Steam app ID for the dedicated server package."; }; - runtimeAppId = lib.mkOption { - type = lib.types.nullOr lib.types.ints.positive; - default = null; - example = 892970; - description = "Steam app ID exposed to the running server through SteamAppId. Defaults to appId."; - }; - installDir = lib.mkOption { type = lib.types.str; example = "/data/servers/valheim/main";