mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
Some additional xinetd settings.
svn path=/nixos/trunk/; revision=33836
This commit is contained in:
parent
6ef5e0e5b3
commit
298e0e1829
|
@ -15,6 +15,7 @@ let
|
||||||
log_type = SYSLOG daemon info
|
log_type = SYSLOG daemon info
|
||||||
log_on_failure = HOST
|
log_on_failure = HOST
|
||||||
log_on_success = PID HOST DURATION EXIT
|
log_on_success = PID HOST DURATION EXIT
|
||||||
|
${cfg.extraDefaults}
|
||||||
}
|
}
|
||||||
|
|
||||||
${concatMapStrings makeService cfg.services}
|
${concatMapStrings makeService cfg.services}
|
||||||
|
@ -33,6 +34,7 @@ let
|
||||||
user = ${srv.user}
|
user = ${srv.user}
|
||||||
server = ${srv.server}
|
server = ${srv.server}
|
||||||
${optionalString (srv.serverArgs != "") "server_args = ${srv.serverArgs}"}
|
${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 {
|
services.xinetd.services = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -115,6 +125,12 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.string;
|
||||||
|
default = "";
|
||||||
|
description = "Extra configuration-lines added to the section of the service.";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue