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:
parent
58efa6df5b
commit
9f4d37e5df
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue