Add and configure new Git server using Forgejo

This commit is contained in:
June 2024-01-14 23:19:41 +01:00
commit ec5430ee34
7 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Sources for this configuration:
# - https://github.com/NixOS/nixpkgs/blob/d45794fd254a7da62cc2d3c4f54a1d65e39760d9/nixos/modules/services/web-apps/nextcloud.nix#L1086
{ ... }:
{
services.redis.servers.forgejo = {
enable = true;
user = "forgejo";
};
systemd.services.forgejo = {
after = [ "redis-forgejo.service" ];
requires = [ "redis-forgejo.service" ];
};
}