From 489bc98ee1634a46f16de2532d6e473c725ad460 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 19 Jun 2015 01:55:07 +0200 Subject: tv git: allow repo section naming --- modules/tv/git/cgit.nix | 1 + modules/tv/git/default.nix | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'modules/tv/git') diff --git a/modules/tv/git/cgit.nix b/modules/tv/git/cgit.nix index edee199..7f58fcf 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 1a1d024..89b72d5 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 = '' -- cgit v1.2.3