Home

dotnix @147b2f4c12d507c30ea1a0ec0be4d91aaff99075 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / machines / dragonwell / go.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
let
  modules = [
    {
      name = "hcaptcha";
      repo = "gitea.com/jolheiser/hcaptcha";
    }
    {
      name = "pwn";
      repo = "gitea.com/jolheiser/pwn";
    }
  ];
in
builtins.concatStringsSep "\n" (
  builtins.map (module: ''
    respond /${module.name}* `<html><head>
              <meta name="go-import" content="go.jolheiser.com/${module.name} git https://${module.repo}.git">
              <meta http-equiv="refresh" content="3; url=https://pkg.go.dev/go.jolheiser.com/${module.name}" />
              </head><body>
              Redirecting to <a href="https://pkg.go.dev/go.jolheiser.com/${module.name}">https://pkg.go.dev/go.jolheiser.com/${module.name}</a>
              </body></html>`
  '') modules
)