mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(access): minecraft
This commit is contained in:
parent
75b123776b
commit
f3b8f606b8
9 changed files with 55 additions and 17 deletions
|
|
@ -25,13 +25,13 @@ in {
|
|||
root = config.rootDir + "/minecraft/katsink";
|
||||
path = mkDefault cfg.dataDir;
|
||||
};
|
||||
# TODO: serviceConfig.ExecStart = mkForce [ "${pkgs.runtimeShell} ${cfg.dataDir}/run.sh" ]; for imperative updates ?
|
||||
};
|
||||
sockets.minecraft-katsink-server = {
|
||||
socketConfig.SocketGroup = "admin";
|
||||
};
|
||||
};
|
||||
networking.firewall = mkIf cfg.enable {
|
||||
interfaces.tailscale0.allowedTCPPorts = [cfg.port];
|
||||
interfaces.local.allowedTCPPorts = [cfg.port];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue