mirror of
https://github.com/kmein/niveum
synced 2026-03-21 20:31:07 +01:00
feat(nextcloud): require storagebox mount
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (import ../../lib) localAddresses;
|
|
||||||
storageBoxMountPoint = "/mnt/storagebox";
|
storageBoxMountPoint = "/mnt/storagebox";
|
||||||
in {
|
in {
|
||||||
# https://docs.hetzner.com/de/robot/storage-box/access/access-samba-cifs/
|
# https://docs.hetzner.com/de/robot/storage-box/access/access-samba-cifs/
|
||||||
@@ -24,6 +23,11 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.nextcloud-setup = {
|
||||||
|
wants = ["mnt-storagebox.mount" "postgresql.service"];
|
||||||
|
after = ["mnt-storagebox.mount" "postgresql.service"];
|
||||||
|
};
|
||||||
|
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
hetzner-storagebox-credentials = {
|
hetzner-storagebox-credentials = {
|
||||||
file = ../../secrets/hetzner-storagebox-credentials.age;
|
file = ../../secrets/hetzner-storagebox-credentials.age;
|
||||||
@@ -123,10 +127,4 @@ in {
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ensure that postgres is running before running the setup
|
|
||||||
systemd.services."nextcloud-setup" = {
|
|
||||||
requires = ["postgresql.service"];
|
|
||||||
after = ["postgresql.service"];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user