nixos/gitea: explicitly set CHUNKED_UPLOAD_PATH to writable location
Fix for Gitea 1.20.0. Without this being set, e.g. a `git push` (or `ssh` to `git@` in general) fails like this: 2023/07/17 09:27:05 ...s/setting/setting.go:109:LoadCommonSettings() [F] Unable to load settings from config: unable to create chunked upload directory: /nix/store/yna9nf66wl2n9hlnhxi2g7fdgawk2kxl-gitea-1.20.0/bin/data/tmp/package-upload (mkdir /nix/store/yna9nf66wl2n9hlnhxi2g7fdgawk2kxl-gitea-1.20.0/bin/data: read-only file system) Connection to git.mbosch.me closed.
This commit is contained in:
parent
7e82daa7d1
commit
42105b2ba3
|
@ -439,6 +439,8 @@ in
|
||||||
lfs = mkIf cfg.lfs.enable {
|
lfs = mkIf cfg.lfs.enable {
|
||||||
PATH = cfg.lfs.contentDir;
|
PATH = cfg.lfs.contentDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages.CHUNKED_UPLOAD_PATH = "${cfg.stateDir}/tmp/package-upload";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
|
services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
|
||||||
|
|
Loading…
Reference in a new issue