1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ jolheiser, lib, ... }:
let
enable = true;
port = 7449;
host = "pr.${jolheiser.domain}";
in
lib.mkIf enable {
services = {
git-pr = {
enable = false;
openFirewall = true;
url = host;
admins = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXoiWcPkL5kUAqJfMxnPM/ND4qJ4kKShDhXdqnYv2ZB" ];
sshPort = 7448;
enableWeb = true;
webPort = port;
theme = "catppuccin-mocha";
timeFormat = "01/02/2006 at 03:04:05PM";
repos = [
{
id = "ugit";
cloneAddr = "https://git.jolheiser.com/ugit.git";
desc = "Minimal git service";
}
{
id = "git-pr-nix";
cloneAddr = "https://git.jolheiser.com/git-pr-nix.git";
desc = "Nix flake, package, and module for git-pr";
}
];
};
caddy.virtualHosts."${host}".extraConfig = ''
reverse_proxy localhost:${builtins.toString port}
'';
};
}
|