nix-config/nixos/_mixins/services/onlyoffice.nix
2024-05-23 15:02:20 -04:00

19 lines
348 B
Nix

# Reference: https://carjorvaz.com/posts/the-holy-grail-nextcloud-setup-made-easy-by-nixos/
{ config, ... }:
let
fqdn = "onlyoffice.${config.domainName}";
in
{
services = {
nginx.virtualHosts."${fqdn}" = {
forceSSL = true;
enableACME = true;
};
onlyoffice = {
enable = true;
hostname = fqdn;
};
};
}