From 3dca54ace0b5479560a5ce790d2ab0a574558ff0 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Thu, 24 Aug 2023 20:36:30 +0200 Subject: [PATCH] pad: set the listed tag by default --- modules/hedgedoc.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/hedgedoc.nix b/modules/hedgedoc.nix index cba0bb7..f811819 100644 --- a/modules/hedgedoc.nix +++ b/modules/hedgedoc.nix @@ -1,6 +1,11 @@ { config, pkgs, lib, ... }: let domain = "pad.ifsr.de"; + template = pkgs.writeText "hedgedoc-template.md" '' + --- + tags: listed + --- + ''; in { services = { @@ -47,6 +52,7 @@ in allowAnonymous = false; allowAnonymousEdits = true; defaultPermission = "limited"; + defaultNotePath = builtins.toString template; # ldap auth ldap = rec { url = "ldap://localhost"; @@ -92,3 +98,4 @@ in export LDAP_CREDENTIALS="$(cat ${config.sops.secrets.hedgedoc_ldap_search.path})" ''; } +