summaryrefslogtreecommitdiffstats
path: root/modules/tv
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-19 01:55:07 +0200
committertv <tv@shackspace.de>2015-06-19 01:55:07 +0200
commit81797b6a4ca4159d4b857294375e76aaa313fcd2 (patch)
treeb35988a4e2fcd07e0d0f051eb761225b0b36146b /modules/tv
parent501fdb53c10edfd3328646377beee35568daa1e0 (diff)
tv git: allow repo section naming
Diffstat (limited to 'modules/tv')
-rw-r--r--modules/tv/git/cgit.nix1
-rw-r--r--modules/tv/git/default.nix7
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/tv/git/cgit.nix b/modules/tv/git/cgit.nix
index edee19909..7f58fcf60 100644
--- a/modules/tv/git/cgit.nix
+++ b/modules/tv/git/cgit.nix
@@ -61,6 +61,7 @@ in
${concatMapStringsSep "\n" (repo: ''
repo.url=${repo.name}
repo.path=${cfg.dataDir}/${repo.name}
+ ${optionalString (repo.section != null) "repo.section=${repo.section}"}
${optionalString (repo.desc != null) "repo.desc=${repo.desc}"}
'') (filter isPublicRepo (attrValues cfg.repos))}
'';
diff --git a/modules/tv/git/default.nix b/modules/tv/git/default.nix
index 1a1d02449..89b72d501 100644
--- a/modules/tv/git/default.nix
+++ b/modules/tv/git/default.nix
@@ -117,6 +117,13 @@ in
Repository description.
'';
};
+ section = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ Repository section.
+ '';
+ };
name = mkOption {
type = types.str;
description = ''