summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-01-27 15:08:17 +0000
committerDan Peebles <pumpkin@me.com>2017-01-27 15:08:23 +0000
commitced27b2966ecad3ccf275779f054188642ae9818 (patch)
treeb7ab1fbbda600671b7bbd10758b2f052f0d1c383 /nixos/modules
parent8a104aa085bbdea0b801bef787d9e77c043897b0 (diff)
downloadnixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar.gz
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar.bz2
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar.lz
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar.xz
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.tar.zst
nixlib-ced27b2966ecad3ccf275779f054188642ae9818.zip
fluentd module: add configurable package option
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/logging/fluentd.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/logging/fluentd.nix b/nixos/modules/services/logging/fluentd.nix
index 3aa27a152669..e56a9a4e9afb 100644
--- a/nixos/modules/services/logging/fluentd.nix
+++ b/nixos/modules/services/logging/fluentd.nix
@@ -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";
       };
     };