nixos/services/nextcloud/default.nix

28 lines
620 B
Nix
Raw Normal View History

{
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";
};
2023-06-08 11:00:54 +01:00
extraApps = with pkgs.nextcloud26Packages.apps; {inherit calendar contacts bookmarks;};
extraAppsEnable = true;
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [
{
addr = "localhost";
port = 8000;
}
];
}