summaryrefslogtreecommitdiffstats
path: root/modules/tv
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-08 23:24:42 +0200
committertv <tv@shackspace.de>2015-07-08 23:24:42 +0200
commit8e56049eabf870bc297e866684c2b105638bb09a (patch)
treed0285993c024ad86290494f41e768920d919b93d /modules/tv
parente7f737f1eb1ada49f9e210d242769c766c850dbe (diff)
tv.git cgit: mkdir /tmp/cgit on activation
Diffstat (limited to 'modules/tv')
-rw-r--r--modules/tv/git/cgit.nix7
1 files changed, 6 insertions, 1 deletions
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 = [