From d396ee655921be8ee943ce93ccfc90cd1f0f1fdb Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Wed, 8 Oct 2025 22:00:37 +0200 Subject: [PATCH] stirling-pdf: Add options for branding --- hosts/srv-public/default.nix | 4 ++++ modules/system/services/stirling-pdf.nix | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/hosts/srv-public/default.nix b/hosts/srv-public/default.nix index 2471e4a..3291384 100644 --- a/hosts/srv-public/default.nix +++ b/hosts/srv-public/default.nix @@ -58,6 +58,10 @@ stirling-pdf = { enable = true; domain = "pdf.${sproutedDomain}"; + branding = { + name = "Sprouted PDF"; + description = "Sprouted's one-stop-shop for all your PDF needs."; + }; }; privatebin = { diff --git a/modules/system/services/stirling-pdf.nix b/modules/system/services/stirling-pdf.nix index 0ead57c..db05ace 100644 --- a/modules/system/services/stirling-pdf.nix +++ b/modules/system/services/stirling-pdf.nix @@ -13,6 +13,16 @@ in type = lib.types.port; default = 56191; }; + branding = { + name = lib.mkOption { + type = lib.types.nonEmptyStr; + default = "Stirling PDF"; + }; + description = lib.mkOption { + type = lib.types.nonEmptyStr; + default = "Your locally hosted one-stop-shop for all your PDF needs."; + }; + }; }; config = lib.mkIf cfg.enable { @@ -28,6 +38,10 @@ in SERVER_PORT = cfg.port; SYSTEM_ENABLEANALYTICS = "false"; LANGS = "de_DE"; + + UI_APPNAME = cfg.branding.name; + UI_APPNAVBARNAME = cfg.branding.name; + UI_HOMEDESCRIPTION = cfg.branding.description; }; }; };