gpsd: use optionalString
This commit is contained in:
parent
57ed52d61f
commit
32e982448d
@ -107,8 +107,8 @@ in
|
|||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \
|
${pkgs.gpsd}/sbin/gpsd -D "${toString cfg.debugLevel}" \
|
||||||
-S "${toString cfg.port}" \
|
-S "${toString cfg.port}" \
|
||||||
${if cfg.readonly then "-b" else ""} \
|
${optionalString cfg.readonly "-b"} \
|
||||||
${if cfg.nowait then "-n" else ""} \
|
${optionalString cfg.nowait "-n"} \
|
||||||
"${cfg.device}"
|
"${cfg.device}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user