services: initial nextcloud

This commit is contained in:
Kabbone 2022-12-11 18:35:42 +01:00
parent 08a4b3d96f
commit e17934aaea
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
services.nextcloud = {
enable = true;
hostName = "cloud.kabtop.de";
https = true;
config = {
dbtype = "pgsql";
dbuser = "nextcloud";
dbhost = "localhost";
dbname = "nextclouddb";
dbport =
adminuser = "kabbone";
#adminpassFile = "secret123";
};
};
systemd.services."nextcloud-setup" = {
requires = ["postgresql.service"];
after = ["postgresql.service"];
};
}

View File

@ -42,7 +42,7 @@
"telegramdb" "telegramdb"
"signaldb" "signaldb"
"keycloakdb" "keycloakdb"
] ];
ensureUsers = [ ensureUsers = [
{ {
name = "gitea"; name = "gitea";
@ -86,7 +86,7 @@
"DATABASE keycloakdb" = "ALL PRIVILEGES"; "DATABASE keycloakdb" = "ALL PRIVILEGES";
}; };
}; };
] ];
}; };
services.postgreqlBackup.enable = true; services.postgreqlBackup.enable = true;