Commit e2b79f08 authored by Matt Melling's avatar Matt Melling Committed by Bjørn Forsman
Browse files

gpsd: add listenany option

parent fee673de
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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}"
        '';
      };