tvl-depot/ops/nixos
Griffin Smith a73714a93c feat(ops/nixos): Add generic rebuild-system script
This adds a first crack at one idea for a generic, non-user-specific
rebuild-system script to ops.nixos.rebuild-system. The idea here is that
we enumerate all the nixos systems stored in the monorepo (similarly to
what we do for ci-builds right now) then search through them by hostname
to find the one matching the hostname of the current system, which is an
attempt at a more generic version of tazjin's rebuilder script which
does the same thing but with an explicit case block.

As a caveat, it feels like there's a slight possibility that this way of
finding systems is going to get slow to evaluate - on my system it feels
fine but if it grows out of hand it's probably feasible to just bake
this into the built script as a dynamically generated case statement.

Change-Id: I2e4c5401913b6f4d936ab48ba2f95f96e0e78eb4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/894
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-07-06 15:16:36 +00:00
..
tvl-slapd chore(tvl-slapd): rotate password for riking 2020-07-02 06:20:04 +00:00
whitby feat(ops/nixos): Add generic rebuild-system script 2020-07-06 15:16:36 +00:00
.gitignore chore(ops/nixos): Move NixOS configuration one level up 2020-01-04 22:50:19 +00:00
.skip-subtree refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00
all-systems.nix feat(ops/nixos): Add generic rebuild-system script 2020-07-06 15:16:36 +00:00
clbot.nix feat(nixos/clbot): Add a module for running clbot 2020-06-30 23:39:48 +00:00
default.nix feat(ops/nixos): Add generic rebuild-system script 2020-07-06 15:16:36 +00:00
depot.nix refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00
monorepo-gerrit.nix feat(monorepo-gerrit): Use Sourcegraph as the gitweb for Gerrit 2020-06-20 17:29:50 +00:00
README.md refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00
smtprelay.nix fix(nixos/smtprelay): Only enable if the user asks for it 2020-06-30 23:32:45 +00:00
sourcegraph.nix chore(nixos/sourcegraph): Configure Sourcegraph to use Cheddar 2020-06-20 03:00:46 +00:00
v4l2loopback.nix refactor(ops/nixos): Move my NixOS configurations to //users/tazjin 2020-06-13 23:52:35 +00:00

NixOS modules

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

It is not read by readTree.