From 298e0e182907b1e5a82f11a4decb4d1b22de698e Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Thu, 19 Apr 2012 08:28:54 +0000 Subject: [PATCH] Some additional xinetd settings. svn path=/nixos/trunk/; revision=33836 --- modules/services/networking/xinetd.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/services/networking/xinetd.nix b/modules/services/networking/xinetd.nix index aabb7cf9f8a..3727e85816c 100644 --- a/modules/services/networking/xinetd.nix +++ b/modules/services/networking/xinetd.nix @@ -15,6 +15,7 @@ let log_type = SYSLOG daemon info log_on_failure = HOST log_on_success = PID HOST DURATION EXIT + ${cfg.extraDefaults} } ${concatMapStrings makeService cfg.services} @@ -33,6 +34,7 @@ let user = ${srv.user} server = ${srv.server} ${optionalString (srv.serverArgs != "") "server_args = ${srv.serverArgs}"} + ${srv.extraConfig} } ''; @@ -51,6 +53,14 @@ in ''; }; + services.xinetd.extraDefaults = mkOption { + default = ""; + type = types.string; + description = '' + Additional configuration lines added to the default section of xinetd's configuration. + ''; + }; + services.xinetd.services = mkOption { default = []; description = '' @@ -115,6 +125,12 @@ in ''; }; + extraConfig = mkOption { + type = types.string; + default = ""; + description = "Extra configuration-lines added to the section of the service."; + }; + }; };