mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
fluentd module: add configurable package option
This commit is contained in:
parent
8a104aa085
commit
ced27b2966
@ -21,6 +21,12 @@ in {
|
||||
default = "";
|
||||
description = "Fluentd config.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.fluentd;
|
||||
description = "The fluentd package to use.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -32,7 +38,7 @@ in {
|
||||
description = "Fluentd Daemon";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.fluentd}/bin/fluentd -c ${pkgs.writeText "fluentd.conf" cfg.config}";
|
||||
ExecStart = "${cfg.package}/bin/fluentd -c ${pkgs.writeText "fluentd.conf" cfg.config}";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user