From fa51273b80467302c40a6ea9394759d613d6bf09 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 18 Dec 2023 10:32:25 -0600 Subject: [PATCH] refactor: prepend `squad` in `mkServerName` --- modules/squad-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/squad-server.nix b/modules/squad-server.nix index 5e173d4..f8fb4c5 100644 --- a/modules/squad-server.nix +++ b/modules/squad-server.nix @@ -773,7 +773,7 @@ in # Credit to https://github.com/mkaito/nixos-modded-minecraft-servers/tree/master. # A fair bit of the handling of the nested servers was based upon the code there. enabledServers = lib.filterAttrs (_: conf: conf.enable) cfg.servers; - mkServerName = name: replaceNonAlum "-" name; + mkServerName = name: "squad-${replaceNonAlum "-" name}"; eachEnabledServer = f: lib.mapAttrs' (name: config: lib.nameValuePair (mkServerName name) (f name config)) enabledServers; collectPorts = portType: lib.lists.flatten (lib.mapAttrsToList (_: serverConfig: serverConfig.${portType}) enabledServers); gamePorts = collectPorts "gamePort";