nixos/gpsd-service: add type declarations to options

This commit is contained in:
Bjørn Forsman 2014-03-15 09:52:00 +01:00
parent 28e5f72f05
commit f7006116b3

View File

@ -19,6 +19,7 @@ in
services.gpsd = { services.gpsd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable `gpsd', a GPS service daemon. Whether to enable `gpsd', a GPS service daemon.
@ -26,6 +27,7 @@ in
}; };
device = mkOption { device = mkOption {
type = types.str;
default = "/dev/ttyUSB0"; default = "/dev/ttyUSB0";
description = '' description = ''
A device may be a local serial device for GPS input, or a URL of the form: A device may be a local serial device for GPS input, or a URL of the form:
@ -35,6 +37,7 @@ in
}; };
readonly = mkOption { readonly = mkOption {
type = types.bool;
default = true; default = true;
description = '' description = ''
Whether to enable the broken-device-safety, otherwise Whether to enable the broken-device-safety, otherwise
@ -51,6 +54,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.uniq types.int;
default = 2947; default = 2947;
description = '' description = ''
The port where to listen for TCP connections. The port where to listen for TCP connections.
@ -58,6 +62,7 @@ in
}; };
debugLevel = mkOption { debugLevel = mkOption {
type = types.uniq types.int;
default = 0; default = 0;
description = '' description = ''
The debugging level. The debugging level.