grimm-nixos-laptop/modules2/hedgedoc.nix
2025-02-05 11:41:17 +01:00

18 lines
479 B
Nix

{ config, ... }:
let
inherit (config.serverConfig) vhosts;
in
{
services.hedgedoc = {
enable = true;
settings = {
domain = vhosts.hedgedoc_host.host;
inherit (vhosts.hedgedoc_host) port;
host = "127.0.0.1";
protocolUseSSL = true;
allowEmailRegister = false; # no registrations for now
allowAnonymousEdits = true; # anonymous can edit select files
allowAnonymous = false; # anonymous can't actually create notes
};
};
}