41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
|
|
{ pkgs, ... }:
|
|
{
|
|
services.nextcloud = {
|
|
enable = true;
|
|
hostName = "cloud2.kabtop.de";
|
|
https = true;
|
|
package = pkgs.nextcloud25;
|
|
config = {
|
|
dbtype = "pgsql";
|
|
dbuser = "nextcloud";
|
|
dbhost = "localhost";
|
|
dbname = "nextclouddb";
|
|
adminuser = "kabbone";
|
|
adminpassFile = config.age.secrets."services/nextcloud/adminpassFile".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" = {
|
|
file = ../../../secrets/services/nextcloud/dbpassFile.age;
|
|
owner = "nextcloud";
|
|
};
|
|
age.secrets."services/nextcloud/adminpassFile" = {
|
|
file = ../../../secrets/services/nextcloud/adminpassFile.age;
|
|
owner = "nextcloud";
|
|
};
|
|
|
|
systemd.services."nextcloud-setup" = {
|
|
requires = ["postgresql.service"];
|
|
after = ["postgresql.service"];
|
|
};
|
|
}
|