feat: use forgejo NixOS module with gitea user
All checks were successful
Flake checks / Check (pull_request) Successful in 7m50s

https://nixos.org/manual/nixos/stable/#module-forgejo-migration-gitea
This commit is contained in:
teutat3s 2024-02-06 12:19:45 +01:00
parent 0deb8eb6be
commit f43ba01ee6
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -32,13 +32,26 @@
}; };
}; };
services.gitea = { users.users.gitea = {
home = "/var/lib/forgejo";
useDefaultShell = true;
group = "gitea";
isSystemUser = true;
};
users.groups.gitea = {};
services.forgejo = {
enable = true; enable = true;
user = "gitea";
group = "gitea";
package = pkgs.forgejo; package = pkgs.forgejo;
appName = "pub.solar git server"; appName = "pub.solar git server";
database = { database = {
type = "postgres"; type = "postgres";
passwordFile = config.age.secrets.forgejo-database-password.path; passwordFile = config.age.secrets.forgejo-database-password.path;
name = "gitea";
user = "gitea";
}; };
stateDir = "/var/lib/forgejo"; stateDir = "/var/lib/forgejo";
lfs.enable = true; lfs.enable = true;