summaryrefslogtreecommitdiffstats
path: root/3modules/tv
diff options
context:
space:
mode:
Diffstat (limited to '3modules/tv')
-rw-r--r--3modules/tv/git.nix26
1 files changed, 21 insertions, 5 deletions
diff --git a/3modules/tv/git.nix b/3modules/tv/git.nix
index e19063f..7170d2e 100644
--- a/3modules/tv/git.nix
+++ b/3modules/tv/git.nix
@@ -39,9 +39,6 @@ let
type = types.str;
default = "/etc/git";
};
- rules = mkOption {
- type = types.unspecified;
- };
repos = mkOption {
type = types.attrsOf (types.submodule ({
options = {
@@ -102,6 +99,25 @@ let
Repositories.
'';
};
+ root-desc = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ Text printed below the heading on the repository index page.
+ Default value: "a fast webinterface for the git dscm".
+ '';
+ };
+ root-title = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ Text printed as heading on the repository index page.
+ Default value: "Git Repository Browser".
+ '';
+ };
+ rules = mkOption {
+ type = types.unspecified;
+ };
users = mkOption {
type = types.unspecified;
};
@@ -175,8 +191,8 @@ let
enable-log-linecount=1
enable-remote-branches=1
- root-title=public repositories at ${config.networking.hostName}
- root-desc=keep calm and engage
+ ${optionalString (cfg.root-title != null) "root-title=${cfg.root-title}"}
+ ${optionalString (cfg.root-desc != null) "root-desc=${cfg.root-desc}"}
snapshots=0
max-stats=year