Author: amiddelk
Date: Thu Apr 19 08:28:54 2012
New Revision: 33836
URL: https://nixos.org/websvn/nix/?rev=33836&sc=1
Log:
Some additional xinetd settings.
Modified:
nixos/trunk/modules/services/networking/xinetd.nix
Modified: nixos/trunk/modules/services/networking/xinetd.nix
==============================================================================
--- nixos/trunk/modules/services/networking/xinetd.nix Wed Apr 18 18:42:44
2012 (r33835)
+++ nixos/trunk/modules/services/networking/xinetd.nix Thu Apr 19 08:28:54
2012 (r33836)
@@ -15,6 +15,7 @@
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 @@
user = ${srv.user}
server = ${srv.server}
${optionalString (srv.serverArgs != "") "server_args =
${srv.serverArgs}"}
+ ${srv.extraConfig}
}
'';
@@ -51,6 +53,14 @@
'';
};
+ 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 @@
'';
};
+ extraConfig = mkOption {
+ type = types.string;
+ default = "";
+ description = "Extra configuration-lines added to the section of the
service.";
+ };
+
};
};
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits