From 8e56049eabf870bc297e866684c2b105638bb09a Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 8 Jul 2015 23:24:42 +0200 Subject: tv.git cgit: mkdir /tmp/cgit on activation --- modules/tv/git/cgit.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/tv/git') diff --git a/modules/tv/git/cgit.nix b/modules/tv/git/cgit.nix index a3b72bf8e..747a93135 100644 --- a/modules/tv/git/cgit.nix +++ b/modules/tv/git/cgit.nix @@ -39,7 +39,7 @@ in virtual-root=/cgit - # TODO make this nicer + # TODO make this nicer (and/or somewhere else) cache-root=/tmp/cgit cache-size=1000 @@ -64,6 +64,11 @@ in '') (filter isPublicRepo (attrValues cfg.repos))} ''; + system.activationScripts.cgit = '' + mkdir -m 0700 -p /tmp/cgit + chown fcgiwrap: /tmp/cgit + ''; + tv.nginx = { enable = true; retiolum-locations = [ -- cgit v1.2.3