mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Adjust nextcloud data dir structure
This commit is contained in:
parent
feda29b824
commit
5fb08b9c85
2 changed files with 5 additions and 5 deletions
|
|
@ -7,8 +7,8 @@
|
|||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/tailscale-nextcloud - - -"
|
||||
"d /data/nextcloud - - -"
|
||||
"d /data/postgresql - - -"
|
||||
];
|
||||
|
||||
containers.nextcloud = {
|
||||
|
|
@ -18,7 +18,6 @@
|
|||
"/run/secrets/nextcloud".isReadOnly = false;
|
||||
"/run/secrets/tailscale-auth-key" = { };
|
||||
"/data/nextcloud".isReadOnly = false;
|
||||
"/data/postgresql".isReadOnly = false;
|
||||
"/var/lib/tailscale" = {
|
||||
hostPath = "/var/lib/tailscale-nextcloud";
|
||||
isReadOnly = false;
|
||||
|
|
|
|||
|
|
@ -6,15 +6,16 @@
|
|||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"z /run/secrets/nextcloud/admin-password 400 nextcloud nextcloud -"
|
||||
"z /data/postgresql 700 postgres postgres -"
|
||||
"d /data/nextcloud/home 750 nextcloud nextcloud -"
|
||||
"d /data/nextcloud/postgresql 700 postgres postgres -"
|
||||
];
|
||||
|
||||
services.postgresql.dataDir = "/data/postgresql";
|
||||
services.postgresql.dataDir = "/data/nextcloud/postgresql";
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud29;
|
||||
home = "/data/nextcloud";
|
||||
home = "/data/nextcloud/home";
|
||||
hostName = config.networking.fqdn;
|
||||
|
||||
database.createLocally = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue