diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-03-15 09:52:00 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-03-15 17:35:55 +0100 |
commit | f7006116b383fa865c8a24af874f3b4b7997dcbe (patch) | |
tree | 3755e042d9efafd282437dc084ba47e26493e3b6 /nixos/modules/services/misc | |
parent | 28e5f72f05d0ee931bccb87de63184e47cb3173b (diff) | |
download | nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar.gz nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar.bz2 nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar.lz nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar.xz nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.tar.zst nixlib-f7006116b383fa865c8a24af874f3b4b7997dcbe.zip |
nixos/gpsd-service: add type declarations to options
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/gpsd.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gpsd.nix b/nixos/modules/services/misc/gpsd.nix index a92e06f0902b..99b733d399e2 100644 --- a/nixos/modules/services/misc/gpsd.nix +++ b/nixos/modules/services/misc/gpsd.nix @@ -19,6 +19,7 @@ in services.gpsd = { enable = mkOption { + type = types.bool; default = false; description = '' Whether to enable `gpsd', a GPS service daemon. @@ -26,6 +27,7 @@ in }; device = mkOption { + type = types.str; default = "/dev/ttyUSB0"; description = '' A device may be a local serial device for GPS input, or a URL of the form: @@ -35,6 +37,7 @@ in }; readonly = mkOption { + type = types.bool; default = true; description = '' Whether to enable the broken-device-safety, otherwise @@ -51,6 +54,7 @@ in }; port = mkOption { + type = types.uniq types.int; default = 2947; description = '' The port where to listen for TCP connections. @@ -58,6 +62,7 @@ in }; debugLevel = mkOption { + type = types.uniq types.int; default = 0; description = '' The debugging level. |