2023-12-17 11:39:52 +02:00
|
|
|
inputs: { pkgs, config, ... }: {
|
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.nextcloud27;
|
|
|
|
hostName = "localhost";
|
|
|
|
config = {
|
|
|
|
adminpassFile = "/var/keys/nextcloud_initial_password";
|
|
|
|
extraTrustedDomains = [
|
|
|
|
"cloud.gra.phite.ro"
|
|
|
|
];
|
2024-01-20 23:07:14 +02:00
|
|
|
overwriteProtocol = "https";
|
2023-12-17 11:39:52 +02:00
|
|
|
};
|
|
|
|
extraApps = with config.services.nextcloud.package.packages.apps; {
|
2024-01-20 23:07:14 +02:00
|
|
|
inherit news files_markdown files_texteditor forms maps memories music onlyoffice polls calendar tasks;
|
2023-12-17 11:39:52 +02:00
|
|
|
};
|
|
|
|
/*
|
|
|
|
extraOptions = {
|
|
|
|
trusted_domains = [ "https://cloud.gra.phite.ro" ];
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
extraAppsEnable = true;
|
|
|
|
};
|
|
|
|
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 3001; } ];
|
|
|
|
}
|