nextcloud for calendars

This commit is contained in:
Henri Dohmen 2026-01-14 23:00:15 +01:00
parent c5c4ff3925
commit 6fe1b261d5
Signed by: hd
GPG key ID: AB79213B044674AE
8 changed files with 102 additions and 82 deletions

46
host/roam/nextcloud.nix Normal file
View file

@ -0,0 +1,46 @@
{
pkgs,
secrets,
config,
...
}:
let
hostName = "nextcloud.hdohmen.de";
in
{
services.nextcloud = {
enable = true;
inherit hostName;
package = pkgs.nextcloud32;
https = true;
configureRedis = true;
datadir = "/data/nextcloud";
database.createLocally = true;
extraAppsEnable = true;
extraApps = {
inherit (config.services.nextcloud.package.packages.apps)
news
contacts
calendar
tasks
;
};
config = {
adminuser = "admin";
adminpassFile = config.age.secrets.nextcloud-admin-password.path;
dbtype = "pgsql";
};
};
services.nginx.virtualHosts.${hostName} = {
enableACME = true;
forceSSL = true;
};
age.secrets.nextcloud-admin-password = {
file = secrets.roam."nextcloud-admin-password.age";
owner = "nextcloud";
group = "nextcloud";
mode = "440";
};
}