nixos-config/profiles/servers/nextcloud.nix

19 lines
483 B
Nix

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