nixos/services/nextcloud/default.nix
Evie Litherland-Smith 0503c681c2 Add nextcloud config (working)
Fix nextcloud and add recommended security features
2023-05-26 10:21:38 +01:00

28 lines
610 B
Nix

{
pkgs,
config,
...
}: {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud26;
hostName = "cloud.xenia.me.uk";
config = {
adminuser = "xenia";
adminpassFile = "/secrets/nextcloud_admin.txt";
};
extraOptions = {
trusted_proxies = ["192.168.1.166"];
overwriteprotocol = "https";
};
extraApps = with pkgs.nextcloud26Packages.apps; {inherit calendar contacts;};
extraAppsEnable = true;
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [
{
addr = "localhost";
port = 8000;
}
];
}