depot/third_party/home-manager/tests/integration/default.nix
Default email 4d19ca4703 Project import generated by Copybara.
GitOrigin-RevId: a7117efb3725e6197dd95424136f79147aa35e5b
2024-06-04 11:23:39 -07:00

20 lines
559 B
Nix

{ pkgs }:
let
nixosLib = import "${pkgs.path}/nixos/lib" { };
runTest = test:
nixosLib.runTest {
imports = [ test { node.pkgs = pkgs; } ];
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
};
tests = {
nixos-basics = runTest ./nixos/basics.nix;
standalone-flake-basics = runTest ./standalone/flake-basics.nix;
standalone-standard-basics = runTest ./standalone/standard-basics.nix;
};
in tests // {
all = pkgs.linkFarm "all"
(pkgs.lib.mapAttrsToList (name: path: { inherit name path; }) tests);
}