forked from fediversity/fediversity
33 lines
652 B
Nix
33 lines
652 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 = [
|
|
../common/nixosTest.nix
|
|
./nixosTest.nix
|
|
];
|
|
_module.args = {
|
|
inherit inputs sources;
|
|
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
};
|
|
inherit (import ./constants.nix)
|
|
targetMachines
|
|
pathToRoot
|
|
pathFromRoot
|
|
;
|
|
}
|