tv git: allow repo section naming

This commit is contained in:
tv 2015-06-19 01:55:07 +02:00
parent 501fdb53c1
commit 81797b6a4c
2 changed files with 8 additions and 0 deletions

View File

@ -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))}
'';

View File

@ -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 = ''