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
2d09ad6359
commit
3edcf0883b
1 changed files with 16 additions and 19 deletions
|
|
@ -30,7 +30,7 @@ in
|
|||
port = serviceCfg.ports.port0;
|
||||
address = localhost;
|
||||
stateDir = "/var/lib/${serviceCfg.name}";
|
||||
environmentFile = "/run/secrets/projectenv";
|
||||
environmentFile = "/etc/opencloud-secrets/env";
|
||||
};
|
||||
|
||||
openssh = {
|
||||
|
|
@ -53,24 +53,21 @@ 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/*
|
||||
# '';
|
||||
# };
|
||||
|
||||
opencloud-copy-secrets = {
|
||||
description = "Copy secrets from virtiofs to local filesystem";
|
||||
before = [ "opencloud-init-config.service" ];
|
||||
requiredBy = [ "opencloud-init-config.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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue