grimm-nixos-laptop/modules/hedgedoc.nix
2024-09-28 22:09:24 +02:00

19 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
};
};
}