summaryrefslogtreecommitdiff
path: root/services/cgit.nix
diff options
context:
space:
mode:
authorJohn Bargman2026-02-22 01:13:13 +0000
committerJohn Bargman2026-02-22 01:13:13 +0000
commit057c19f3b70229918ec1456f67b678501ba10959 (patch)
treeba5c45216391e553958baec83f138ff16fcbe9f0 /services/cgit.nix
parent8319ad8165066933b1507436b896d6d0ed76403b (diff)
downloadcrash-web-057c19f3b70229918ec1456f67b678501ba10959.tar
crash-web-057c19f3b70229918ec1456f67b678501ba10959.tar.gz
crash-web-057c19f3b70229918ec1456f67b678501ba10959.tar.bz2
crash-web-057c19f3b70229918ec1456f67b678501ba10959.tar.lz
crash-web-057c19f3b70229918ec1456f67b678501ba10959.tar.xz
crash-web-057c19f3b70229918ec1456f67b678501ba10959.tar.zst
crash-web-057c19f3b70229918ec1456f67b678501ba10959.zip
update completed
Diffstat (limited to 'services/cgit.nix')
-rw-r--r--services/cgit.nix37
1 files changed, 22 insertions, 15 deletions
diff --git a/services/cgit.nix b/services/cgit.nix
index 72f94dc..e8e557e 100644
--- a/services/cgit.nix
+++ b/services/cgit.nix
@@ -22,6 +22,14 @@
};
};
+
+ systemd.services.uwsgi =
+ {
+ serviceConfig.ReadWritePaths = [
+ "/persist/cgit"
+ ];
+ };
+
services.gitolite = {
enable = true;
user = "git";
@@ -59,27 +67,26 @@
'';
};
};
- };
-
- systemd.services.create-cgit-cache = {
- description = "Create cache directory for cgit";
- enable = true;
- wantedBy = [ "uwsgi.service" ];
- serviceConfig = {
- type = "oneshot";
};
- script = ''
- mkdir -p /run/cgit
- chmod -R 660 /run/cgit
- chown -R public:nginx /run/cgit
- '';
- };
+ systemd.services.create-cgit-cache = {
+ description = "Create cache directory for cgit";
+ enable = true;
+ wantedBy = [ "uwsgi.service" ];
+ serviceConfig = {
+ type = "oneshot";
+ };
+ script = ''
+ mkdir -p /persist/cgit
+ chmod -R 750 /persist/cgit
+ chown -R public:nginx /persist/cgit
+ '';
+ };
environment.etc."cgitrc".text = ''
virtual-root=/
cache-size=1000
- cache-root=/run/cgit
+ cache-root=/persist/cgit
root-title=~/projects
root-desc=You got overburned, now face the ${fqdn}