nix-config/nixos/_mixins/services/onlyoffice.nix

20 lines
348 B
Nix
Raw Permalink Normal View History

# 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;
};
};
}