From 6b617cfe1c06d04e0cbc3aff81d1c1f8cd6f558c Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 13 Mar 2026 16:01:44 +0100 Subject: [PATCH] stirling-pdf: Remove module --- modules/nixos/web-services/stirling-pdf.nix | 52 --------------------- 1 file changed, 52 deletions(-) delete mode 100644 modules/nixos/web-services/stirling-pdf.nix diff --git a/modules/nixos/web-services/stirling-pdf.nix b/modules/nixos/web-services/stirling-pdf.nix deleted file mode 100644 index 269e6e1..0000000 --- a/modules/nixos/web-services/stirling-pdf.nix +++ /dev/null @@ -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"; - }; - }; - }; -}