mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
stirling-pdf: Add options for branding
This commit is contained in:
parent
d218ef2b35
commit
d396ee6559
2 changed files with 18 additions and 0 deletions
|
|
@ -58,6 +58,10 @@
|
||||||
stirling-pdf = {
|
stirling-pdf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "pdf.${sproutedDomain}";
|
domain = "pdf.${sproutedDomain}";
|
||||||
|
branding = {
|
||||||
|
name = "Sprouted PDF";
|
||||||
|
description = "Sprouted's one-stop-shop for all your PDF needs.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
privatebin = {
|
privatebin = {
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,16 @@ in
|
||||||
type = lib.types.port;
|
type = lib.types.port;
|
||||||
default = 56191;
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -28,6 +38,10 @@ in
|
||||||
SERVER_PORT = cfg.port;
|
SERVER_PORT = cfg.port;
|
||||||
SYSTEM_ENABLEANALYTICS = "false";
|
SYSTEM_ENABLEANALYTICS = "false";
|
||||||
LANGS = "de_DE";
|
LANGS = "de_DE";
|
||||||
|
|
||||||
|
UI_APPNAME = cfg.branding.name;
|
||||||
|
UI_APPNAVBARNAME = cfg.branding.name;
|
||||||
|
UI_HOMEDESCRIPTION = cfg.branding.description;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue