test: setting up opencloud and microvms

This commit is contained in:
Nick 2025-12-04 23:32:33 -06:00
parent 589cccbe4d
commit 7b69c77f02
2 changed files with 10 additions and 2 deletions

View file

@ -1,8 +1,11 @@
{ flake, ... }:
{ flake, config, ... }:
let
inherit (flake.config.services) instances;
inherit (flake.config.machines.devices) eris;
opencloud = instances.opencloud0;
dns = instances.web.dns.provider0;
opencloudHost = opencloud.domains.url0;
dnsPath = "dns/${dns}";
service = instances.caddy;
in
{
@ -22,6 +25,12 @@ in
};
};
security.acme.certs."${opencloudHost}" = {
dnsProvider = dns;
environmentFile = config.sops.secrets.${dnsPath}.path;
group = "caddy";
};
networking = {
firewall = {
allowedTCPPorts = [