From 9f4d37e5dfb41409e5a7e9bac43db93012d77f9f Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 22 Nov 2020 14:35:31 -0500 Subject: feat(ops/nixos): Give all nixoses a config.depot Add the depot.nix module and a depot config option to all nixos system derivations that're build through the `bin/rebuild-system` machinery. I can't imagine a scenario where we wouldn't want this level of integration. Change-Id: Ieeb98db2eee23919256adb4654bc45d540e055ec Reviewed-on: https://cl.tvl.fyi/c/depot/+/2128 Tested-by: BuildkiteCI Reviewed-by: lukegb --- ops/nixos/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/nixos/default.nix b/ops/nixos/default.nix index 5bd32e4068..312d762f24 100644 --- a/ops/nixos/default.nix +++ b/ops/nixos/default.nix @@ -20,7 +20,13 @@ rec { allSystems = import ./all-systems.nix args; nixosFor = configuration: depot.third_party.nixos { - inherit configuration; + configuration = { + inherit depot; + imports = [ + configuration + "${depot.depotPath}/ops/nixos/depot.nix" + ]; + }; }; findSystem = hostname: -- cgit 1.4.1