4 changed files with 51 additions and 4 deletions
@ -0,0 +1,28 @@ |
|||
{ pkgs, ... }: |
|||
{ |
|||
nixpkgs.config.allowUnfree = true; |
|||
virtualisation.oci-containers.containers = { |
|||
"infrared" = { |
|||
image = "haveachin/infrared:latest"; |
|||
environment = { |
|||
INFRARED_CONFIG_PATH = "/configs/"; |
|||
INFRARED_PROMETHEUS_ENABLED = "true"; |
|||
INFRARED_PROMETHEUS_BIND = ":9136"; |
|||
}; |
|||
autoStart = true; |
|||
ports = ["25565:25565" "9136:9136"]; |
|||
volumes = [ |
|||
"/etc/infrared/configs/:/configs/" |
|||
]; |
|||
}; |
|||
}; |
|||
|
|||
environment.etc."infrared/configs/home.nora.codes" = { |
|||
mode = "0666"; |
|||
source = ../../include/infrared-home.nora.codes.json; |
|||
}; |
|||
|
|||
# Port 9136 is for the prom exporter. |
|||
networking.firewall.allowedTCPPorts = [ 9136 25565 ]; |
|||
networking.firewall.allowedUDPPorts = [ 25565 ]; |
|||
} |
@ -0,0 +1,6 @@ |
|||
{ |
|||
"domainName": "home.nora.codes", |
|||
"listenTo": "0.0.0.0:25565", |
|||
"proxyTo": "crimespoon:25565", |
|||
"disconnectMessage": "Sorry {{username}}, but the server appears to be broken. Let Nora know!" |
|||
} |
Loading…
Reference in new issue