add omada

This commit is contained in:
2023-12-04 17:49:43 +01:00
parent 2a5c40103a
commit 7b50808621
4 changed files with 95 additions and 0 deletions

View File

@@ -23,4 +23,38 @@
};
};
};
security.acme.certs."${domain}" = {
domain = "${domain}";
};
containers.omada = {
autoStart = true;
ephemeral = true;
macvlans = [ "vserver" ];
bindMounts = {
"/var/lib/gitea" = {
hostPath = "/var/lib/gitea/";
isReadOnly = false;
};
};
bindMounts = {
"/var/lib/acme/gitea/" = {
hostPath = "${config.security.acme.certs.${domain}.directory}";
isReadOnly = true;
};
};
config = { lib, config, pkgs, ... }: {
networking = {
hostName = "gitea";
interfaces.mv-vserver = {
useDHCP = true;
};
firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 ];
};
};
};
};
}