2023-05-26 08:52:46 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.nextcloud26;
|
|
|
|
hostName = "cloud.xenia.me.uk";
|
|
|
|
config = {
|
|
|
|
adminuser = "xenia";
|
2023-05-26 10:21:38 +01:00
|
|
|
adminpassFile = "/secrets/nextcloud_admin.txt";
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
2023-05-26 10:21:38 +01:00
|
|
|
extraOptions = {
|
|
|
|
trusted_proxies = ["192.168.1.166"];
|
|
|
|
overwriteprotocol = "https";
|
|
|
|
};
|
|
|
|
extraApps = with pkgs.nextcloud26Packages.apps; {inherit calendar contacts;};
|
|
|
|
extraAppsEnable = true;
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
|
|
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [
|
|
|
|
{
|
|
|
|
addr = "localhost";
|
|
|
|
port = 8000;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|