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