test: trying to get microVMs to work

This commit is contained in:
Nick 2025-11-10 01:55:02 -06:00
parent 72bb3fbe34
commit bc73d3bc98
4 changed files with 14 additions and 8 deletions

View file

@ -14,6 +14,7 @@ let
host = serviceCfg.domains.url0;
dns0 = instances.web.dns.provider0;
dns0Path = "dns/${dns0}";
hostSecrets = "/opt/secrets";
in
{
microvm.vms.${serviceCfg.name} = {
@ -175,7 +176,7 @@ in
{
mountPoint = "/run/secrets";
proto = "virtiofs";
source = "/var/lib/secrets/${serviceCfg.name}";
source = "${hostSecrets}/${serviceCfg.name}";
tag = "host_secrets";
}
];
@ -201,7 +202,7 @@ in
(secret: {
name = "${serviceCfg.name}/${secret}";
value = {
path = "/var/lib/secrets";
path = hostSecrets;
owner = "root";
mode = "600";
};