20 lines
447 B
Nix
20 lines
447 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.hedgedoc = {
|
|
enable = true;
|
|
settings = {
|
|
domain = "${config.networking.hostName}.${config.networking.domain}";
|
|
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
|
protocolUseSSL = true;
|
|
db = {
|
|
dialect = "postgresql";
|
|
host = "/run/postgresql";
|
|
username = "hedgedoc";
|
|
database = "hedgedoc";
|
|
};
|
|
enableStatsApi = true;
|
|
};
|
|
};
|
|
}
|
|
|