services: work on initial nextcloud

This commit is contained in:
Kabbone 2022-12-31 19:02:57 +01:00
parent 37b97e4010
commit b1f8129a1e
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -3,18 +3,25 @@
{ {
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
hostName = "cloud.kabtop.de"; hostName = "cloud2.kabtop.de";
https = true; https = true;
package = pkgs.nextcloud25;
config = { config = {
dbtype = "pgsql"; dbtype = "pgsql";
dbuser = "nextcloud"; dbuser = "nextcloud";
dbhost = "localhost"; dbhost = "localhost";
dbname = "nextclouddb"; dbname = "nextclouddb";
dbport =
adminuser = "kabbone"; adminuser = "kabbone";
adminpassFile = config.age.secrets."services/nextcloud/adminpassFile".path; adminpassFile = config.age.secrets."services/nextcloud/adminpassFile".path;
dbpassFile = config.age.secrets."services/nextcloud/dbpassFile".path; dbpassFile = config.age.secrets."services/nextcloud/dbpassFile".path;
overwriteProtocol = "https";
defaultPhoneRegion = "DE";
}; };
#phpExtraExtensions = ;
#extraApps = with pkgs.nextcloud25Packages.apps; {
# inherit mail news contacts;
#};
#autoUpdateApps.enable = true;
}; };
age.secrets."services/nextcloud/dbpassFile" = { age.secrets."services/nextcloud/dbpassFile" = {