nixos/gpsd-service: add services.gpsd.nowait option

Changed files
+9
nixos
modules
services
misc
+9
nixos/modules/services/misc/gpsd.nix
···
'';
};
port = mkOption {
type = types.int;
default = 2947;
···
${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \
-S "${toString cfg.port}" \
${if cfg.readonly then "-b" else ""} \
"${cfg.device}"
'';
};
···
'';
};
+
nowait = mkOption {
+
type = types.bool;
+
default = false;
+
description = ''
+
don't wait for client connects to poll GPS
+
'';
+
};
+
port = mkOption {
type = types.int;
default = 2947;
···
${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \
-S "${toString cfg.port}" \
${if cfg.readonly then "-b" else ""} \
+
${if cfg.nowait then "-n" else ""} \
"${cfg.device}"
'';
};