nixos/syslog-ng: Add option configHeader
This commit is contained in:
parent
33b104c57e
commit
cdba59d0f2
|
@ -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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue