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 = { services.forgejo = {
enable = true; enable = true;
user = "gitea";
group = "gitea";
stateDir = "/var/lib/gitea";
database = { database = {
type = "postgres"; type = "postgres";
user = "gitea";
name = "gitea";
passwordFile = "/run/agenix/gitea-dbpass"; passwordFile = "/run/agenix/gitea-dbpass";
}; };
settings = { 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 ]; environment.systemPackages = [ pkgs.pandoc ];
services.postgresql = { services.postgresql = {
enable = true; # Ensure postgresql is enabled enable = true; # Ensure postgresql is enabled