Add flake

This commit is contained in:
Alois 2026-08-22 11:11:34 +02:00
commit 945846e0b5
No known key found for this signature in database
3 changed files with 829 additions and 1 deletions

View file

@ -1,2 +1,56 @@
# nextcloud
# Nextcloud
Example:
```nix
{ 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";
};
};
};
}
```