diff options
| author | Seth Flynn <[email protected]> | 2025-02-08 14:59:19 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-08 15:17:18 -0500 |
| commit | 49aa07fa63fa489ad4f3b0ff9fc34f36bb630fd6 (patch) | |
| tree | 37581031da29f47a958d41e151d0d015af709532 /systems/atlas | |
| parent | 69a8df8400fbeac849101f49ee4d0cb14989d228 (diff) | |
atlas: use forgejo for git server
Diffstat (limited to 'systems/atlas')
| -rw-r--r-- | systems/atlas/default.nix | 12 | ||||
| -rw-r--r-- | systems/atlas/forgejo.nix | 17 |
2 files changed, 18 insertions, 11 deletions
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix index 3ccd4ab..6ed10b8 100644 --- a/systems/atlas/default.nix +++ b/systems/atlas/default.nix @@ -3,6 +3,7 @@ imports = [ (modulesPath + "/profiles/minimal.nix") ./hardware-configuration.nix + ./forgejo.nix ./miniflux.nix ./moyai.nix ./nginx.nix @@ -25,16 +26,5 @@ nixpkgs.hostPlatform = "aarch64-linux"; - services = { - github-mirror = { - enable = true; - hostname = "git.getchoo.com"; - mirroredUsers = [ - "getchoo" - "getchoo-archive" - ]; - }; - }; - system.stateVersion = "23.05"; } diff --git a/systems/atlas/forgejo.nix b/systems/atlas/forgejo.nix new file mode 100644 index 0000000..719ea7c --- /dev/null +++ b/systems/atlas/forgejo.nix @@ -0,0 +1,17 @@ +{ config, ... }: + +let + forgejoCfg = config.services.forgejo; +in + +{ + mixins.forgejo.enable = true; + + services.nginx.virtualHosts = { + "git.getchoo.com" = { + locations."/" = { + proxyPass = "http://unix:${forgejoCfg.settings.server.HTTP_ADDR}"; + }; + }; + }; +} |
