summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-02-02 22:28:25 +0100
committertv <tv@krebsco.de>2021-02-02 22:56:35 +0100
commit25505301ad773e5a1b569e2432b1e0d62815bcc5 (patch)
tree15a347825bbb24a7fd4ed10f157998bf1e03363a /krebs
parenta78010730930d536e0426429a00851167ba8e05a (diff)
htgen module: add package option
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/htgen.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/3modules/htgen.nix b/krebs/3modules/htgen.nix
index 0dddca6c8..70c4fcd2b 100644
--- a/krebs/3modules/htgen.nix
+++ b/krebs/3modules/htgen.nix
@@ -20,6 +20,11 @@ let
default = config._module.args.name;
};
+ package = mkOption {
+ default = pkgs.htgen;
+ type = types.package;
+ };
+
port = mkOption {
type = types.uint;
};
@@ -52,7 +57,7 @@ let
User = htgen.user.name;
PrivateTmp = true;
Restart = "always";
- ExecStart = "${pkgs.htgen}/bin/htgen --serve";
+ ExecStart = "${htgen.package}/bin/htgen --serve";
};
}
) cfg;