pad: set the listed tag by default
This commit is contained in:
parent
453f43169c
commit
3dca54ace0
|
@ -1,6 +1,11 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
domain = "pad.ifsr.de";
|
domain = "pad.ifsr.de";
|
||||||
|
template = pkgs.writeText "hedgedoc-template.md" ''
|
||||||
|
---
|
||||||
|
tags: listed
|
||||||
|
---
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
@ -47,6 +52,7 @@ in
|
||||||
allowAnonymous = false;
|
allowAnonymous = false;
|
||||||
allowAnonymousEdits = true;
|
allowAnonymousEdits = true;
|
||||||
defaultPermission = "limited";
|
defaultPermission = "limited";
|
||||||
|
defaultNotePath = builtins.toString template;
|
||||||
# ldap auth
|
# ldap auth
|
||||||
ldap = rec {
|
ldap = rec {
|
||||||
url = "ldap://localhost";
|
url = "ldap://localhost";
|
||||||
|
@ -92,3 +98,4 @@ in
|
||||||
export LDAP_CREDENTIALS="$(cat ${config.sops.secrets.hedgedoc_ldap_search.path})"
|
export LDAP_CREDENTIALS="$(cat ${config.sops.secrets.hedgedoc_ldap_search.path})"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue