test: trying to fix opencloud

This commit is contained in:
Nick 2025-11-30 16:18:57 -06:00
parent 27c1859ace
commit 2d09ad6359

View file

@ -53,6 +53,24 @@ in
opencloud = { opencloud = {
path = [ pkgs.inotify-tools ]; path = [ pkgs.inotify-tools ];
}; };
# opencloud-copy-secrets = {
# description = "Copy secrets from virtiofs to local filesystem";
# before = [ "<fill me senpai>.service" ];
# requiredBy = [ "<fill me senpai>.service" ];
# serviceConfig = {
# Type = "oneshot";
# RemainAfterExit = true;
# };
# script = ''
# mkdir -p /etc/opencloud-secrets
# cp /run/secrets/projectenv /etc/opencloud-secrets/env
# chmod 755 /etc/opencloud-secrets
# chmod 644 /etc/opencloud-secrets/*
# '';
# };
}; };
network = { network = {
enable = true; enable = true;
@ -126,7 +144,6 @@ in
source = "${serviceCfg.mntPaths.path0}/config"; source = "${serviceCfg.mntPaths.path0}/config";
tag = "${serviceCfg.name}_config"; tag = "${serviceCfg.name}_config";
} }
{ {
mountPoint = "/run/secrets"; mountPoint = "/run/secrets";
proto = "virtiofs"; proto = "virtiofs";
@ -175,6 +192,8 @@ in
systemd = { systemd = {
tmpfiles.rules = [ tmpfiles.rules = [
"d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -" "d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -"
"d ${serviceCfg.mntPaths.path0}/data 0751 microvm wheel - -"
"d ${serviceCfg.mntPaths.path0}/config 0751 microvm wheel - -"
]; ];
}; };