No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-22 11:11:34 +02:00
flake.nix Add flake 2026-08-22 11:11:34 +02:00
LICENSE Add flake 2026-08-22 11:11:34 +02:00
README.md Add flake 2026-08-22 11:11:34 +02:00

Nextcloud

Example:

{ config, ... }:
{
  sops.secrets = {
    nextcloud-jwt = { };
    nextcloud-oidc = { };
    nextcloud-admin-password = { };
  };

  custom.nextcloud = {
    enable = true;

    hostName = "cloud.example.com";
    adminUser = "administrator";
    useAuthentikSSO = true;

    secrets = {
      adminPasswordFile = config.sops.secrets.nextcloud-admin-password.path;
      jwtFile = config.sops.secrets.nextcloud-jwt.path;
      oidcClientSecretFile = config.sops.secrets.nextcloud-oidc.path;
    };

    nginx.useACMEHost = "example.com";

    anubis.enable = true;

    authentik = {
      hostName = "auth.example.com";
      providerName = "My authentik provider";
      blueprint.enable = true;
    };

    addons = {
      apps = [
        "mail"
        "deck"
      ];

      whiteboard = {
        enable = true;
        hostName = "whiteboad.example.com";
        disableRecording = true;
      };

      eurooffice = {
        enable = true;
        hostName = "eurooffice.example.com";
      };
    };
  };
}