1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

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 = {
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.