nixos-dotfiles/hosts/hypnos/services/cloud.nix
Alex Stan 8b01e35da7 e
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
2024-02-29 01:53:07 +02:00

25 lines
750 B
Nix

inputs: { pkgs, config, ... }: {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud27;
hostName = "localhost";
config = {
adminpassFile = "/var/keys/nextcloud_initial_password";
extraTrustedDomains = [
"cloud.gra.phite.ro"
];
overwriteProtocol = "https";
};
extraApps = with config.services.nextcloud.package.packages.apps; {
inherit news files_markdown files_texteditor forms maps memories music onlyoffice polls calendar tasks contacts;
};
/*
extraOptions = {
trusted_domains = [ "https://cloud.gra.phite.ro" ];
};
*/
extraAppsEnable = true;
};
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 3001; } ];
}