helix: fix gitea

This commit is contained in:
Anish Lakhwara 2024-08-21 22:09:39 -07:00
parent 6538121f1d
commit 2f93cff966

View file

@ -6,8 +6,13 @@
services.forgejo = {
enable = true;
user = "gitea";
group = "gitea";
stateDir = "/var/lib/gitea";
database = {
type = "postgres";
user = "gitea";
name = "gitea";
passwordFile = "/run/agenix/gitea-dbpass";
};
settings = {
@ -43,6 +48,15 @@
};
};
users.users.gitea = {
home = "/var/lib/gitea";
useDefaultShell = true;
group = "gitea";
isSystemUser = true;
};
users.groups.gitea = {};
environment.systemPackages = [ pkgs.pandoc ];
services.postgresql = {
enable = true; # Ensure postgresql is enabled