fluentd module: add configurable package option
commitced27b2966ecad3ccf275779f054188642ae9818
authorDan Peebles <pumpkin@me.com>
dateFri 27 Jan 2017, 15:08 (10 years ago)
parent8a104aa
nixos/modules/services/logging/fluentd.nix+7−1
@@ -21,6 +21,12 @@ in {
2121 default = "";
2222 description = "Fluentd config.";
2323 };
24+
25+ package = mkOption {
26+ type = types.path;
27+ default = pkgs.fluentd;
28+ description = "The fluentd package to use.";
29+ };
2430 };
2531 };
2632
@@ -32,7 +38,7 @@ in {
3238 description = "Fluentd Daemon";
3339 wantedBy = [ "multi-user.target" ];
3440 serviceConfig = {
35− ExecStart = "${pkgs.fluentd}/bin/fluentd -c ${pkgs.writeText "fluentd.conf" cfg.config}";
41+ ExecStart = "${cfg.package}/bin/fluentd -c ${pkgs.writeText "fluentd.conf" cfg.config}";
3642 ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
3743 };
3844 };