grimm-nixos-laptop/modules/hedgedoc.nix
2024-06-14 00:09:10 +02:00

18 lines
481 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
};
};
}