mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 18:18:03 +00:00
gpsd: use optionalString
This commit is contained in:
parent
57ed52d61f
commit
32e982448d
@ -107,8 +107,8 @@ in
|
||||
ExecStart = ''
|
||||
${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \
|
||||
-S "${toString cfg.port}" \
|
||||
${if cfg.readonly then "-b" else ""} \
|
||||
${if cfg.nowait then "-n" else ""} \
|
||||
${optionalString cfg.readonly "-b"} \
|
||||
${optionalString cfg.nowait "-n"} \
|
||||
"${cfg.device}"
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user