From 9df7818dc53bd98edc2fac8f05dcb718c51cb434 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 13 Mar 2021 16:57:28 +0000 Subject: [PATCH] ops/nixos: add systemPathJSON This is a file which contains a mapping of system name to their store path, to allow for easier retrieval from GCS. --- ci-root.nix | 1 + ops/nixos/default.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ci-root.nix b/ci-root.nix index d12dbae1cf..5a9bd653ef 100644 --- a/ci-root.nix +++ b/ci-root.nix @@ -18,6 +18,7 @@ let twitterchiver-archiver = depot.go.twitterchiver.archiver; twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage; twitternuke = depot.go.twitternuke; + systemPathJSON = depot.ops.nixos.systemPathJSON; }; in pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciWindows ++ ciGrafanaPlugins ++ ciDocker ++ ciWeb ++ ciOther) diff --git a/ops/nixos/default.nix b/ops/nixos/default.nix index 5b6a13d084..8c2ed4df8f 100644 --- a/ops/nixos/default.nix +++ b/ops/nixos/default.nix @@ -65,4 +65,6 @@ in systemDrvs // { tailscaleIPs = systemTailscaleIPs; netboot = netbootSystem.config.system.build.pixiecore; + + systemPathJSON = builtins.toFile "systems.json" (builtins.toJSON systems); }