Enable hedgedoc on alto

This commit is contained in:
SebastianStork 2025-04-11 09:03:43 +02:00
parent 7c1275b0de
commit 6d9652bcc2
4 changed files with 117 additions and 7 deletions

View file

@ -1,7 +1,8 @@
{ config, ... }:
let
myCfg = config.myConfig;
in
caddyServe = myCfg.tailscale.caddyServe;
in
{
system.stateVersion = "24.11";
@ -13,16 +14,27 @@ let
ssh.enable = true;
exitNode.enable = true;
caddyServe.nextcloud = {
subdomain = "cloud";
inherit (myCfg.nextcloud) port;
caddyServe = {
nextcloud = {
subdomain = "cloud";
inherit (myCfg.nextcloud) port;
};
hedgedoc = {
subdomain = "docs";
inherit (myCfg.hedgedoc) port;
};
};
};
nextcloud = {
enable = true;
backups.enable = true;
inherit (myCfg.tailscale.caddyServe.nextcloud) subdomain;
inherit (caddyServe.nextcloud) subdomain;
};
hedgedoc = {
enable = true;
backups.enable = true;
inherit (caddyServe.hedgedoc) subdomain;
};
};
}