diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-07-03 13:55:27 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-07-03 13:55:27 +0100 |
commit | 32e982448d055ad2f2536f687da92a8017a24f8e (patch) | |
tree | 001188d2b6c7c005c6471b6ffda6c1afcf533fde /nixos | |
parent | 57ed52d61f11d01ed1f590ef4d2d9dbc0d740177 (diff) | |
download | nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar.gz nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar.bz2 nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar.lz nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar.xz nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.tar.zst nixlib-32e982448d055ad2f2536f687da92a8017a24f8e.zip |
gpsd: use optionalString
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gpsd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gpsd.nix b/nixos/modules/services/misc/gpsd.nix index 80f5501ec1d8..3bfcb636a3c6 100644 --- a/nixos/modules/services/misc/gpsd.nix +++ b/nixos/modules/services/misc/gpsd.nix @@ -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}" ''; }; |