nixos/forgejo: replace GITEA_ prefix in env with FORGEJO_

Since https://codeberg.org/forgejo/forgejo/issues/497 has been resolved,
these can now be `FORGEJO_` prefixed instead of `GITEA_`.

Co-Authored-By: Emily <git@emilylange.de>
This commit is contained in:
Pyrox 2024-04-24 01:47:05 -04:00 committed by emilylange
parent cfd4bedd3d
commit 665063ca71
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -784,10 +784,8 @@ in
environment = {
USER = cfg.user;
HOME = cfg.stateDir;
# `GITEA_` prefix until https://codeberg.org/forgejo/forgejo/issues/497
# is resolved.
GITEA_WORK_DIR = cfg.stateDir;
GITEA_CUSTOM = cfg.customDir;
FORGEJO_WORK_DIR = cfg.stateDir;
FORGEJO_CUSTOM = cfg.customDir;
} // lib.listToAttrs (map (e: lib.nameValuePair e.env "%d/${e.env}") secrets);
};
@ -814,10 +812,8 @@ in
environment = {
USER = cfg.user;
HOME = cfg.stateDir;
# `GITEA_` prefix until https://codeberg.org/forgejo/forgejo/issues/497
# is resolved.
GITEA_WORK_DIR = cfg.stateDir;
GITEA_CUSTOM = cfg.customDir;
FORGEJO_WORK_DIR = cfg.stateDir;
FORGEJO_CUSTOM = cfg.customDir;
};
serviceConfig = {