add option to set package
This commit is contained in:
parent
74e0802c11
commit
4656f9c678
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.lychee;
|
cfg = config.services.lychee;
|
||||||
src = pkgs.lychee-gallery;
|
src = cfg.package;
|
||||||
envConf = cfg.settings;
|
envConf = cfg.settings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,9 @@ in
|
||||||
default = "localhost";
|
default = "localhost";
|
||||||
example = "www.example.com";
|
example = "www.example.com";
|
||||||
};
|
};
|
||||||
|
package = lib.mkOption {
|
||||||
|
type = lib.types.path;
|
||||||
|
};
|
||||||
forceSSL = lib.mkOption {
|
forceSSL = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
Loading…
Reference in a new issue