Fediversity/deployment/check/netbox-ips/default.nix
Kiara Grouwstra ca8ba444b7
centralize TF
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
2025-11-10 13:22:22 +01:00

35 lines
700 B
Nix

{
inputs,
sources,
system,
}:
let
overlay = _: prev: {
terraform-backend =
prev.callPackage "${sources.nixpkgs-unstable}/pkgs/by-name/te/terraform-backend/package.nix"
{ };
opentofu = pkgs.callPackage ../../tf.nix { };
};
pkgs = import sources.nixpkgs {
inherit system;
overlays = [ overlay ];
};
in
pkgs.testers.runNixOSTest {
imports = [
../../data-model.nix
../../function.nix
../common/nixosTest.nix
./nixosTest.nix
];
_module.args = {
inherit inputs sources;
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
};
inherit (import ./constants.nix)
targetMachines
pathToRoot
pathFromRoot
;
}