fix(nix): Fix Gogs SSH access

The Gogs developers got it into their head that trying to write things
to some relative path from the binary location is a sensible thing to
do (spoiler: it's not).

Due to their weird "GOGS_CUSTOM" directory which seems to only
sometimes be configurable by environment variables, the command used
to handle SSH requests failed because it attempted to write logs into
the Nix store.

This works around the issue by hardcoding the log file root path in
the Gogs configuration.
This commit is contained in:
Vincent Ambo 2018-01-03 23:21:57 +01:00
parent a6a48806c4
commit 880df6560c

View file

@ -50,6 +50,10 @@ in {
cookieSecure = true;
domain = "git.tazj.in";
rootUrl = "https://git.tazj.in/";
extraConfig = ''
[log]
ROOT_PATH = /var/lib/gogs/log
'';
};
# Set up Gemma