diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-07-17 11:49:34 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-07-17 11:49:34 +0200 |
commit | 42105b2ba37a5f98b0996c34aa5dc3979975c6a4 (patch) | |
tree | 9918ea9883045db00685f44dc163d3bf50ce2af4 /nixos/modules/services/misc/gitea.nix | |
parent | 7e82daa7d191c5cbfe551bc02191a2fc4366da98 (diff) |
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.
Diffstat (limited to 'nixos/modules/services/misc/gitea.nix')
-rw-r--r-- | nixos/modules/services/misc/gitea.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index 945009f005801..3cc0e54723d96 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -439,6 +439,8 @@ in lfs = mkIf cfg.lfs.enable { PATH = cfg.lfs.contentDir; }; + + packages.CHUNKED_UPLOAD_PATH = "${cfg.stateDir}/tmp/package-upload"; }; services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) { |