gpsd: add listenany option

This commit is contained in:
Matt Melling 2022-12-12 11:28:43 +00:00 committed by Bjørn Forsman
parent fee673de8d
commit e2b79f08bd

View file

@ -77,6 +77,14 @@ in
'';
};
listenany = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
Listen on all addresses rather than just loopback.
'';
};
};
};
@ -106,6 +114,7 @@ in
-S "${toString cfg.port}" \
${optionalString cfg.readonly "-b"} \
${optionalString cfg.nowait "-n"} \
${optionalString cfg.listenany "-G"} \
"${cfg.device}"
'';
};