1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 08:49:44 +01:00
home-manager/tests/integration/default.nix

21 lines
559 B
Nix
Raw Normal View History

{ 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);
}