forked from CCCHH/nix-infra
Add and configure new Git server using Forgejo
This commit is contained in:
parent
26132b1526
commit
ec5430ee34
7 changed files with 182 additions and 0 deletions
16
config/hosts/git/redis.nix
Normal file
16
config/hosts/git/redis.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue