mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
stirling-pdf: Remove module
This commit is contained in:
parent
05d1dfcd56
commit
6b617cfe1c
1 changed files with 0 additions and 52 deletions
|
|
@ -1,52 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.custom.web-services.stirling-pdf;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.custom.web-services.stirling-pdf = {
|
|
||||||
enable = lib.mkEnableOption "";
|
|
||||||
domain = lib.mkOption {
|
|
||||||
type = lib.types.nonEmptyStr;
|
|
||||||
default = "";
|
|
||||||
};
|
|
||||||
port = lib.mkOption {
|
|
||||||
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 {
|
|
||||||
services.stirling-pdf = {
|
|
||||||
enable = true;
|
|
||||||
environment = {
|
|
||||||
SERVER_ADDRESS = "127.0.0.1";
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
custom = {
|
|
||||||
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
|
||||||
|
|
||||||
meta.sites.${cfg.domain} = {
|
|
||||||
title = "Stirling PDF";
|
|
||||||
icon = "sh:stirling-pdf";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue