tvl-depot/ops/modules
Florian Klink 9786255267 feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos
There's a go.mod in in tvix/store/protos, which sets the module path to
code.tvl.fyi/tvix/store/protos.

While this path makes kinda sense, it's currently not possible to `go
get` it from that location, as we serve the cgit interface from there.

Fortunately, `go get` has a mechanism to determine clone URLs for a
given go module path, as documented in https://go.dev/ref/mod#vcs-find.

We simply need to serve a small HTML file at that path, describing the
proper clone URL.

This points the clone URL for code.tvl.fyi/tvix/store/protos to a josh-
provided subtree of just :/tvix/store/protos, which will contain the
root go.mod file.

We need another layer of indirection as nginx can't have an `alias`
directive inside a conditional block (but can have a redirect).

Contrary to https://b.tvl.fyi/issues/299#comment-464, it seems to work
for our usecase. It might become a problem if we actually serve `go.mod`
files in a nested fashion at some point, but let's look at that once we
get there.

Fixes b/299.

Change-Id: Idcad795105af5d57e6d06de6e232881dccf9110b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9290
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: adisbladis <adisbladis@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
2023-09-10 11:43:29 +00:00
..
tvl-slapd chore(3p/sources): Bump channels & overlays 2022-08-13 14:43:05 +00:00
www feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos 2023-09-10 11:43:29 +00:00
.skip-subtree refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00
atward.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
auto-deploy.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
automatic-gc.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
cgit.nix refactor(ops/cgit): make user configurable 2022-07-12 08:49:55 +00:00
clbot.nix chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
default-imports.nix feat(ops/auto-deploy): Support auto-deploy 2021-12-26 14:55:42 +00:00
default.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
depot-inbox.nix chore(3p/sources): Bump channels & overlays 2023-06-15 17:09:02 +00:00
depot-replica.nix fix(depot-replica): make the depot replica world readable 2022-07-12 08:49:55 +00:00
gerrit-queue.nix feat(3p/agenix): update to 2022-05-16 and add to niv 2022-05-25 15:00:37 +00:00
irccat.nix feat(3p/agenix): update to 2022-05-16 and add to niv 2022-05-25 15:00:37 +00:00
josh.nix fix(views/kit): communicate :unsign in the tvl-kit URL directly 2023-03-31 08:46:01 +00:00
journaldriver.nix refactor(ops/modules): Move journaldriver configuration into module 2022-02-18 11:38:34 +00:00
known-hosts.nix fix(ops/modules): adapt for changed ssh.knownHosts 2022-05-26 10:05:54 +00:00
monorepo-gerrit.nix chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
nixery.nix fix(ops/nixery): switch nixery.dev to stable nixpkgs channel 2023-08-22 15:01:02 +00:00
open_eid.nix feat(ops/modules/open_eid): add support for Web eID extension 2023-04-28 13:14:24 +00:00
owothia.nix feat(3p/agenix): update to 2022-05-16 and add to niv 2022-05-25 15:00:37 +00:00
panettone.nix fix(ops/modules): regularly restart panettone for b/225 2022-12-05 09:40:38 +00:00
paroxysm.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
prometheus-fail2ban-exporter.nix refactor(ops): Break out prometheus-fail2ban-exporter module 2021-06-12 15:51:49 +00:00
quassel.nix fix(ops/modules/quassel): use systemd LoadCredential to read certs 2023-06-15 21:34:36 +00:00
README.md refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00
restic.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
smtprelay.nix feat(3p/agenix): update to 2022-05-16 and add to niv 2022-05-25 15:00:37 +00:00
sourcegraph.nix chore(ops/sourcegraph): Bump to 3.40.0 2022-05-28 11:58:34 +00:00
tvl-buildkite.nix chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
tvl-cache.nix fix: reflect renames of Nix configuration options 2022-08-25 16:34:39 +00:00
tvl-headscale.nix feat(ops): introduce (head|tail)scale server at net.tvl.fyi 2023-06-22 13:23:14 +00:00
tvl-users.nix feat(tvl-users): grant wheel privileges to flokli 2023-08-21 11:06:51 +00:00
v4l2loopback.nix refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00

NixOS modules

This folder contains various NixOS modules shared by our NixOS configurations.

It is not read by readTree.