mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: trying to fix opencloud
This commit is contained in:
parent
27c1859ace
commit
2d09ad6359
1 changed files with 20 additions and 1 deletions
|
|
@ -53,6 +53,24 @@ in
|
|||
opencloud = {
|
||||
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 = {
|
||||
enable = true;
|
||||
|
|
@ -126,7 +144,6 @@ in
|
|||
source = "${serviceCfg.mntPaths.path0}/config";
|
||||
tag = "${serviceCfg.name}_config";
|
||||
}
|
||||
|
||||
{
|
||||
mountPoint = "/run/secrets";
|
||||
proto = "virtiofs";
|
||||
|
|
@ -175,6 +192,8 @@ in
|
|||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -"
|
||||
"d ${serviceCfg.mntPaths.path0}/data 0751 microvm wheel - -"
|
||||
"d ${serviceCfg.mntPaths.path0}/config 0751 microvm wheel - -"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue