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 53 ''; 54 54 }; 55 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 + 56 64 port = mkOption { 57 65 type = types.int; 58 66 default = 2947; ··· 99 107 ExecStart = '' 100 108 ${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \ 101 109 -S "${toString cfg.port}" \ 102 - ${if cfg.readonly then "-b" else ""} \ 110 + ${optionalString cfg.readonly "-b"} \ 111 + ${optionalString cfg.nowait "-n"} \ 103 112 "${cfg.device}" 104 113 ''; 105 114 };