diff --git a/nixos/modules/webapps/hedgedoc.nix b/nixos/modules/webapps/hedgedoc.nix new file mode 100644 index 0000000..a6774a8 --- /dev/null +++ b/nixos/modules/webapps/hedgedoc.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: +{ + services.hedgedoc = { + enable = true; + configuration = { + domain = "notes.buehler.rocks"; + protocolUseSSL = true; + urlAddPort = false; + db = { + dialect = "sqlite"; + storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite"; + }; + }; + }; + webapps.apps.hedgedoc = { + dashboard = { + name = "Hedgedoc"; + category = "app"; + icon = "edit"; + link = "https://notes.buehler.rocks"; + }; + }; +}