diff options
author | Vincent Ambo <mail@tazj.in> | 2020-08-27T00·05+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-08-31T23·14+0000 |
commit | 61d2d2d50379e8e445255ec7863f1610ce984b26 (patch) | |
tree | 38dd9d28e41d2439631f75b5d766f218c6228cfe /users | |
parent | 21690c644bc503e4c8cc55df00b398ab81fd7444 (diff) |
feat(ops/pipelines): Dynamically generate CI pipeline from targets r/1747
Create the pipeline by outputting a file that contains nix-build invocations for each target's *derivation path*. Each invocation has a generated Nix expression passed to it with `-E` which fetches the correct target from the tree while correctly handling targets with strange characters (such as in Go-packages). This makes it possible to run target-level granular pipelines. We're getting somewhere! Change-Id: Ia6946e389dafd1d4926130bb8891446d6e17133b Reviewed-on: https://cl.tvl.fyi/c/depot/+/1855 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'users')
-rw-r--r-- | users/glittershark/system/home/default.nix | 2 | ||||
-rw-r--r-- | users/glittershark/system/system/default.nix | 2 | ||||
-rw-r--r-- | users/tazjin/nixos/default.nix | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/users/glittershark/system/home/default.nix b/users/glittershark/system/home/default.nix index d896ba340d59..a10e3f8dfc30 100644 --- a/users/glittershark/system/home/default.nix +++ b/users/glittershark/system/home/default.nix @@ -20,7 +20,7 @@ rec { lib.depot = depot; }; - }) // { __readTree = true; }; + }); chupacabra = home ./machines/chupacabra.nix; } diff --git a/users/glittershark/system/system/default.nix b/users/glittershark/system/system/default.nix index f6710eff7b1b..e1946810540f 100644 --- a/users/glittershark/system/system/default.nix +++ b/users/glittershark/system/system/default.nix @@ -5,7 +5,7 @@ rec { chupacabraSystem = (pkgs.nixos { configuration = chupacabra; - }).system // { __readTree = true; }; + }).system; rebuilder = let diff --git a/users/tazjin/nixos/default.nix b/users/tazjin/nixos/default.nix index 11f2eef13043..9747f5c00cc7 100644 --- a/users/tazjin/nixos/default.nix +++ b/users/tazjin/nixos/default.nix @@ -8,7 +8,7 @@ let configuration = lib.fix(config: foldl' lib.recursiveUpdate {} (map (c: c config) configs) ); - }).system // { __readTree = true; }; + }).system; caseFor = hostname: '' ${hostname}) |