tvl-depot/users/tazjin/nixos
Vincent Ambo 654f13d405 feat(nixos/sourcegraph): Add a module for running SourceGraph
This module spins up the Sourcegraph container.

Builds:

Note that this is contrary to how our other deployments work, but
packaging Sourcegraph is quite difficult (it's a Gitlab style
deployment with a lot of moving parts and third-party things that it
bundles).

If we decide to keep it around, we will want to look at packaging it
in Nix in the future.

Deployment:

The deployment is a hack. Sourcegraph does not support public
instances, but we want it to be public. To work around this we have
configured HTTP-proxy based authentication (i.e. auth via a header)
and hardcoded a static header.

This works, but lets anonymous users change the "Anonymous" user's
settings. We can expect this to get defaced (profile picture, name
etc), until we figure out how to write some nginx configuration to
drop those requests. See git-bug for details.

The Sourcegraph configuration is also not checked in to the
repository. It's unclear where in the data directory it is stored.

Change-Id: I414ff11c3b49989b6792d697bffc8a0edf96c9cb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/425
Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 13:40:49 +00:00
..
camden feat(nixos/sourcegraph): Add a module for running SourceGraph 2020-06-16 13:40:49 +00:00
frog feat(fun/uggc): Install desktop handler in Nix derivation 2020-06-15 18:39:05 +00:00
nugget refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00
default.nix refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00
README.md refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00

NixOS configuration

My NixOS configuration! It configures most of the packages I require on my systems, sets up Emacs the way I need and does a bunch of other interesting things.

System configuration lives in folders for each machine and a custom fixed point evaluation (similar to standard NixOS module configuration) is used to combine configuration together.

Building ops.nixos.rebuilder yields a script that will automatically build and activate the newest configuration based on the current hostname.

Configured hosts:

  • frog - weapon of mass computation at home
  • nugget - desktop computer at home
  • urdhva - T470s (currently with edef)