Setup hub

This commit is contained in:
Nathan McCarty 2025-04-02 05:10:50 -04:00
parent 0c003a2801
commit afe2dee9e6
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.hub = {
image = "lscr.io/linuxserver/heimdall:latest";
volumes = [
"/var/containers/hub:/config";
];
ports = [
"127.0.0.1:8081:80"
];
};
services.nginx.virtualHosts."hub.tailscale.stranger.systems" = {
forceSSL = true;
useAcmeHost = "wildcard.stranger.systems";
locations."/" = {
proxyPass = "http://127.0.0.1:8081";
};
};
}

View file

@ -40,6 +40,7 @@
(import ../../modules/ssh.nix)
(import ../../modules/tailscale.nix)
(import ./containers/conduit.nix)
(import ./containers/hub.nix)
(import ./headscale.nix)
];