mini_nixcfg/imports/hedgedoc.nix
2025-05-25 15:39:04 -04:00

25 lines
509 B
Nix

{ config, lib, pkgs, ... }:
{
services.hedgedoc = {
enable = true;
settings = {
domain = "notes.mymarseille.duckdns.org";
port = 8001;
dbURL = "postgresql://localhost:5432/hedgedoc";
allowAnonymous = false;
allowAnonymousEdits = true;
sessionSecret = "IRpdLVn5z45C7IVhcYkqCd4yrtd21BlasMMEvvLkiF6xBaL1BTUQzqeDg5rA2q9X";
};
};
systemd.services.hedgedoc = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
}