From 4656f9c678fdd2935fb2b1f0ffe2ff81ba3ba163 Mon Sep 17 00:00:00 2001 From: sinavir Date: Mon, 12 Dec 2022 18:09:54 +0100 Subject: [PATCH] add option to set package --- modules/web-apps/lychee.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/web-apps/lychee.nix b/modules/web-apps/lychee.nix index 3152606..da7a24a 100644 --- a/modules/web-apps/lychee.nix +++ b/modules/web-apps/lychee.nix @@ -1,7 +1,7 @@ { pkgs, lib, config, ... }: let cfg = config.services.lychee; - src = pkgs.lychee-gallery; + src = cfg.package; envConf = cfg.settings; in { @@ -12,6 +12,9 @@ in default = "localhost"; example = "www.example.com"; }; + package = lib.mkOption { + type = lib.types.path; + }; forceSSL = lib.mkOption { type = lib.types.bool; default = true;