diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2014-10-16 07:58:54 +0200 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2014-10-16 08:14:45 +0200 |
commit | cdba59d0f223b06c09ca994d9806335bfb8d262e (patch) | |
tree | 66a1008948c5f9785c396e7fc9932911e34700ea /nixos | |
parent | 33b104c57efa995aec4192d530523118babcec45 (diff) |
nixos/syslog-ng: Add option configHeader
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/logging/syslog-ng.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/modules/services/logging/syslog-ng.nix b/nixos/modules/services/logging/syslog-ng.nix index 64b288a11cd3..f3991a411ec4 100644 --- a/nixos/modules/services/logging/syslog-ng.nix +++ b/nixos/modules/services/logging/syslog-ng.nix @@ -7,8 +7,7 @@ let cfg = config.services.syslog-ng; syslogngConfig = pkgs.writeText "syslog-ng.conf" '' - @version: 3.5 - @include "scl.conf" + ${cfg.configHeader} ${cfg.extraConfig} ''; @@ -72,6 +71,17 @@ in { Configuration added to the end of <literal>syslog-ng.conf</literal>. ''; }; + configHeader = mkOption { + type = types.lines; + default = '' + @version: 3.5 + @include "scl.conf" + ''; + description = '' + The very first lines of the configuration file. Should usually contain + the syslog-ng version header. + ''; + }; }; }; |