nixos/git-daemon: add types

This commit is contained in:
Nikolay Amiantov 2014-11-07 15:49:03 +03:00
parent 969349c975
commit 4b2e43865a

View File

@ -14,6 +14,7 @@ in
services.gitDaemon = { services.gitDaemon = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable Git daemon, which allows public hosting of git repositories Enable Git daemon, which allows public hosting of git repositories
@ -28,6 +29,7 @@ in
}; };
basePath = mkOption { basePath = mkOption {
type = types.str;
default = ""; default = "";
example = "/srv/git/"; example = "/srv/git/";
description = '' description = ''
@ -38,6 +40,7 @@ in
}; };
exportAll = mkOption { exportAll = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Publish all directories that look like Git repositories (have the objects Publish all directories that look like Git repositories (have the objects
@ -52,6 +55,7 @@ in
}; };
repositories = mkOption { repositories = mkOption {
type = types.listOf types.str;
default = []; default = [];
example = [ "/srv/git" "/home/user/git/repo2" ]; example = [ "/srv/git" "/home/user/git/repo2" ];
description = '' description = ''
@ -64,17 +68,20 @@ in
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.str;
default = ""; default = "";
example = "example.com"; example = "example.com";
description = "Listen on a specific IP address or hostname."; description = "Listen on a specific IP address or hostname.";
}; };
port = mkOption { port = mkOption {
type = types.int;
default = 9418; default = 9418;
description = "Port to listen on."; description = "Port to listen on.";
}; };
options = mkOption { options = mkOption {
type = types.str;
default = ""; default = "";
description = "Extra configuration options to be passed to Git daemon."; description = "Extra configuration options to be passed to Git daemon.";
}; };