mini_nixcfg/imports/hedgedoc.nix

26 lines
509 B
Nix
Raw Normal View History

2025-05-24 23:03:40 -04:00
{ config, lib, pkgs, ... }:
{
services.hedgedoc = {
enable = true;
settings = {
2025-05-25 15:39:04 -04:00
domain = "notes.mymarseille.duckdns.org";
2025-05-24 23:03:40 -04:00
port = 8001;
2025-05-25 15:39:04 -04:00
dbURL = "postgresql://localhost:5432/hedgedoc";
allowAnonymous = false;
allowAnonymousEdits = true;
sessionSecret = "IRpdLVn5z45C7IVhcYkqCd4yrtd21BlasMMEvvLkiF6xBaL1BTUQzqeDg5rA2q9X";
2025-05-24 23:03:40 -04:00
};
};
2025-05-25 15:39:04 -04:00
systemd.services.hedgedoc = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
2025-05-24 23:03:40 -04:00
}