blob: 50a076dc2d44a37bf9d4cbc1bf1bc642d738abe4 [file] [log] [blame]
{ pkgs, ... }: let
config = { configFile, instanceName }: { pkgs, ... }: {
imports = [
configFile
];
_module.args = { instance = instanceName; inputs = {}; };
};
in {
containers.caddy = {
autoStart = false;
privateNetwork = true;
localAddress = "10.0.108.2";
hostAddress = "10.0.108.1";
config = config {
configFile = /home/minion/Code/nix/oss-labs.eu/hosts/caddy/default.nix;
instanceName = "caddy";
};
};
containers.collabora = {
autoStart = false;
privateNetwork = true;
localAddress = "10.0.108.3";
hostAddress = "10.0.108.1";
config = config {
configFile = /home/minion/Code/nix/oss-labs.eu/hosts/collabora/default.nix;
instanceName = "collabora";
};
};
networking.nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "wlan0";
};
networking.hosts = {
"10.0.108.2" = [ "collabora.oss-labs.eu" "meet.oss-labs.eu" "notes.oss-labs.eu" ];
};
}