tvl-depot/ops
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
..
besadii chore(besadii): Stop adding Code-Review label on CLs 2020-07-03 23:17:46 +00:00
journaldriver chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00
kontemplate chore: Update 'master -> canon' in various places 2020-06-24 01:33:43 +00:00
mq_cli chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00
nixos feat(ops/nixos): Add generic rebuild-system script 2020-07-06 15:16:36 +00:00
pipelines feat(pipelines/depot): Run with --show-trace 2020-06-29 00:38:32 +00:00
posix_mq.rs chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00