0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

systemd.sockets: Add listenStreams option for specifying several sockets

This commit is contained in:
Rickard Nilsson 2013-05-14 16:07:55 +02:00
parent a29c306958
commit 70586f03fe
2 changed files with 11 additions and 0 deletions

View file

@ -215,6 +215,16 @@ rec {
socketOptions = unitOptions // {
listenStreams = mkOption {
default = [];
types = types.listOf types.string;
example = [ "0.0.0.0:993" "/run/my-socket" ];
description = ''
For each item in this list, a <literal>ListenStream</literal>
option in the <literal>[Socket]</literal> section will be created.
'';
};
socketConfig = mkOption {
default = {};
example = { ListenStream = "/run/my-socket"; };