nixos-config/profiles/servers/nextcloud.nix

19 lines
483 B
Nix
Raw Normal View History

2022-02-23 10:55:15 +04:00
{ config, pkgs, lib, ... }: {
2020-07-31 22:00:51 +04:00
services.nextcloud = {
enable = true;
hostName = "nextcloud.balsoft.ru";
config.adminpassFile = config.secrets.nextcloud.decrypted;
2022-02-22 01:06:43 +04:00
package = pkgs.nextcloud23;
2020-07-31 22:00:51 +04:00
https = true;
};
secrets.nextcloud = {
owner = "nextcloud:nextcloud";
services = [ "nextcloud-setup" ];
};
2020-07-31 22:00:51 +04:00
services.nginx.virtualHosts."nextcloud.balsoft.ru" = {
enableACME = true;
forceSSL = true;
locations."/".proxyWebsockets = true;
};
}