feat: HedgeDoc module(#168)

Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config/pulls/168
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
Co-authored-by: Thary <thary@riseup.net>
Co-committed-by: Thary <thary@riseup.net>
This commit is contained in:
2025-09-05 15:33:30 +03:00
committed by Inex Code
parent 73cbdf994e
commit 45c96d3472
5 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
description = "HedgeDoc module";
outputs = { ... }:
{
nixosModules.default = import ./module.nix;
configPathsNeeded = builtins.fromJSON (builtins.readFile ./config-paths-needed.json);
meta =
{ lib, ... }:
{
spModuleSchemaVersion = 1;
id = "hedgedoc";
name = "HedgeDoc";
description = "HedgeDoc is an open-source, web-based, self-hosted, collaborative markdown editor.";
svgIcon = builtins.readFile ./icon.svg;
isMovable = true;
isRequired = false;
backupDescription = "Notes and attachments.";
systemdServices = [
"hedgedoc.service"
];
folders = [
"/var/lib/hedgedoc"
];
postgreDatabases = [
"hedgedoc"
];
license = [
lib.licenses.agpl3Only
];
homepage = "https://hedgedoc.org";
sourcePage = "https://github.com/hedgedoc/hedgedoc";
supportLevel = "normal";
sso = {
userGroup = "sp.hedgedoc.users";
};
};
};
}