diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-25 02:35:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 02:35:16 +0200 |
| commit | acbdc72b0f5884084c2212d5227aef240b0cf076 (patch) | |
| tree | a4073df127edc3821b1deda17045a480f88e02d6 /nixos/hosts/bin/components | |
| parent | 2a361b5043d1d8312f26d9cc3df1c16673248eb8 (diff) | |
Create pufferpanel.nix
Diffstat (limited to 'nixos/hosts/bin/components')
| -rw-r--r-- | nixos/hosts/bin/components/pufferpanel.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/hosts/bin/components/pufferpanel.nix b/nixos/hosts/bin/components/pufferpanel.nix new file mode 100644 index 0000000..50869aa --- /dev/null +++ b/nixos/hosts/bin/components/pufferpanel.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +{ + networking.firewall.allowedTCPPorts = [ 25565 ]; + + services.pufferpanel = { + enable = true; + extraPackages = [ + pkgs.jdk25 + (pkgs.writeShellScriptBin "java25" "exec ${pkgs.jdk25}/bin/java \"$@\"") + ]; + environment = { + PUFFER_WEB_HOST = "10.0.0.1:8080"; + PUFFER_DAEMON_SFTP_HOST = "10.0.0.1:5657"; + }; + }; +} |
