nixos/syslog-ng: Add option configHeader

This commit is contained in:
Rickard Nilsson 2014-10-16 07:58:54 +02:00
parent 33b104c57e
commit cdba59d0f2

View file

@ -7,8 +7,7 @@ let
cfg = config.services.syslog-ng; cfg = config.services.syslog-ng;
syslogngConfig = pkgs.writeText "syslog-ng.conf" '' syslogngConfig = pkgs.writeText "syslog-ng.conf" ''
@version: 3.5 ${cfg.configHeader}
@include "scl.conf"
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
@ -72,6 +71,17 @@ in {
Configuration added to the end of <literal>syslog-ng.conf</literal>. 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.
'';
};
}; };
}; };