couchdb: stricter types

This commit is contained in:
Domen Kožar 2014-02-27 14:33:50 +01:00
parent 9d55a4c513
commit d6a3cada9b

View file

@ -39,7 +39,7 @@ in
}; };
package = mkOption { package = mkOption {
type = types.path; type = types.package;
default = pkgs.couchdb; default = pkgs.couchdb;
example = literalExample "pkgs.couchdb"; example = literalExample "pkgs.couchdb";
description = '' description = ''
@ -65,7 +65,7 @@ in
}; };
pidFile = mkOption { pidFile = mkOption {
type = types.string; type = types.path;
default = "/var/run/couchdb/couchdb.pid"; default = "/var/run/couchdb/couchdb.pid";
description = '' description = ''
pid file. pid file.
@ -75,7 +75,7 @@ in
# couchdb options: http://docs.couchdb.org/en/latest/config/index.html # couchdb options: http://docs.couchdb.org/en/latest/config/index.html
databaseDir = mkOption { databaseDir = mkOption {
type = types.string; type = types.path;
default = "/var/lib/couchdb"; default = "/var/lib/couchdb";
description = '' description = ''
Specifies location of CouchDB database files (*.couch named). This Specifies location of CouchDB database files (*.couch named). This
@ -85,7 +85,7 @@ in
}; };
uriFile = mkOption { uriFile = mkOption {
type = types.string; type = types.path;
default = "/var/run/couchdb/couchdb.uri"; default = "/var/run/couchdb/couchdb.uri";
description = '' description = ''
This file contains the full URI that can be used to access this This file contains the full URI that can be used to access this
@ -97,7 +97,7 @@ in
}; };
viewIndexDir = mkOption { viewIndexDir = mkOption {
type = types.string; type = types.path;
default = "/var/lib/couchdb"; default = "/var/lib/couchdb";
description = '' description = ''
Specifies location of CouchDB view index files. This location should Specifies location of CouchDB view index files. This location should
@ -123,7 +123,7 @@ in
}; };
logFile = mkOption { logFile = mkOption {
type = types.string; type = types.path;
default = "/var/log/couchdb.log"; default = "/var/log/couchdb.log";
description = '' description = ''
Specifies the location of file for logging output. Specifies the location of file for logging output.