nixos-config/profiles/servers/nextcloud.nix
2023-07-11 13:15:11 +04:00

19 lines
478 B
Nix

{ config, pkgs, ... }: {
services.nextcloud = {
enable = true;
hostName = "nextcloud.balsoft.ru";
config.adminpassFile = config.secrets.nextcloud.decrypted;
package = pkgs.nextcloud27;
https = true;
};
secrets.nextcloud = {
owner = "nextcloud:nextcloud";
services = [ "nextcloud-setup" ];
};
services.nginx.virtualHosts."nextcloud.balsoft.ru" = {
enableACME = true;
forceSSL = true;
locations."/".proxyWebsockets = true;
};
}