Merge pull request #42896 from sorki/gpsd_nowait

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

authored by Jörg Thalheim and committed by GitHub ed209182 1a76bd55

+10 -1
+10 -1
nixos/modules/services/misc/gpsd.nix
··· 53 ''; 54 }; 55 56 port = mkOption { 57 type = types.int; 58 default = 2947; ··· 99 ExecStart = '' 100 ${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \ 101 -S "${toString cfg.port}" \ 102 - ${if cfg.readonly then "-b" else ""} \ 103 "${cfg.device}" 104 ''; 105 };
··· 53 ''; 54 }; 55 56 + nowait = mkOption { 57 + type = types.bool; 58 + default = false; 59 + description = '' 60 + don't wait for client connects to poll GPS 61 + ''; 62 + }; 63 + 64 port = mkOption { 65 type = types.int; 66 default = 2947; ··· 107 ExecStart = '' 108 ${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \ 109 -S "${toString cfg.port}" \ 110 + ${optionalString cfg.readonly "-b"} \ 111 + ${optionalString cfg.nowait "-n"} \ 112 "${cfg.device}" 113 ''; 114 };