2024-05-11 22:55:59 +02:00
|
|
|
{ config, pkgs, ... }:
|
2024-05-08 21:49:37 +02:00
|
|
|
let
|
2024-05-09 12:16:28 +02:00
|
|
|
inherit (config.serverConfig) ports vhosts;
|
2024-05-08 21:50:08 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-08 21:49:37 +02:00
|
|
|
services.pufferpanel = {
|
|
|
|
enable = true;
|
|
|
|
environment = {
|
2024-05-09 12:16:28 +02:00
|
|
|
PUFFER_WEB_HOST = ":${builtins.toString vhosts.puffer_host.port}";
|
2024-05-09 14:55:02 +02:00
|
|
|
PUFFER_DAEMON_SFTP_HOST = ":${builtins.toString ports.puffer_sftp_port.port}";
|
2024-05-08 21:49:37 +02:00
|
|
|
};
|
|
|
|
extraGroups = [ "docker" ];
|
|
|
|
};
|
|
|
|
|
2024-05-08 21:50:08 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
25565
|
|
|
|
25566
|
|
|
|
25567
|
|
|
|
25568
|
|
|
|
7270
|
|
|
|
];
|
2024-05-08 21:49:37 +02:00
|
|
|
|
2024-05-08 21:50:08 +02:00
|
|
|
# virtualisation.podman.enable = true;
|
2024-05-08 21:49:37 +02:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pufferpanel
|
|
|
|
(writeShellScriptBin "pufferpanel-nix" "pufferpanel --workDir /var/lib/pufferpanel $@")
|
|
|
|
];
|
|
|
|
}
|