nix/host/x86_64-linux/home/Nextcloud.nix

39 lines
829 B
Nix
Raw Normal View History

2024-12-02 21:12:45 +03:00
{
config,
pkgs,
...
}: {
services.nextcloud = {
enable = true;
database.createLocally = true;
extraAppsEnable = true;
hostName = "cloud.voronind.com";
https = true;
# package = pkgs.nextcloud29;
# phpOptions = {
# memory_limit = lib.mkForce "20G";
# };
config = {
adminpassFile = "${pkgs.writeText "NextcloudPassword" "root"}";
adminuser = "root";
dbname = "nextcloud";
# dbpassFile = "${pkgs.writeText "NextcloudDbPassword" "nextcloud"}";
dbtype = "pgsql";
dbuser = "nextcloud";
};
extraApps = {
inherit (config.services.nextcloud.package.packages.apps)
contacts calendar;
2024-12-02 21:12:45 +03:00
};
settings = {
allow_local_remote_servers = true;
trusted_domains = [
"cloud.voronind.com"
];
trusted_proxies = [
# proxy.address
];
};
};
}