mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 04:34:25 +01:00
Auto create necessary dirs for nextcloud
This commit is contained in:
parent
f0b4b627cc
commit
8afe40c87d
2 changed files with 10 additions and 3 deletions
|
|
@ -6,6 +6,11 @@
|
||||||
tailscale-auth-key = { };
|
tailscale-auth-key = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /data/nextcloud - - -"
|
||||||
|
"d /data/postgresql - - -"
|
||||||
|
];
|
||||||
|
|
||||||
containers.nextcloud = {
|
containers.nextcloud = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
systemd.tmpfiles.rules = [ "z /run/secrets/nextcloud/admin-password 400 nextcloud nextcloud -" ];
|
systemd.tmpfiles.rules = [
|
||||||
|
"z /run/secrets/nextcloud/admin-password 400 nextcloud nextcloud -"
|
||||||
|
"z /data/postgresql 700 postgres postgres -"
|
||||||
|
];
|
||||||
|
|
||||||
services.postgresql.dataDir = "/data/postgresql";
|
services.postgresql.dataDir = "/data/postgresql";
|
||||||
|
|
||||||
|
|
@ -12,7 +15,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud29;
|
package = pkgs.nextcloud29;
|
||||||
home = "/data/nextcloud";
|
home = "/data/nextcloud";
|
||||||
hostName = "localhost";
|
hostName = config.networking.fqdn;
|
||||||
|
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -24,7 +27,6 @@
|
||||||
https = true;
|
https = true;
|
||||||
settings = {
|
settings = {
|
||||||
overwriteProtocol = "https";
|
overwriteProtocol = "https";
|
||||||
trusted_domains = [ config.networking.fqdn ];
|
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
default_phone_region = "DE";
|
default_phone_region = "DE";
|
||||||
maintenance_window_start = "2"; # UTC
|
maintenance_window_start = "2"; # UTC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue