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 <lukegb@tvl.fyi>
This commit is contained in:
Griffin Smith 2020-11-22 14:35:31 -05:00 committed by glittershark
parent 58efa6df5b
commit 9f4d37e5df

View file

@ -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: