mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 03:39:47 +01:00
1395379a7a
Fixes #6217
22 lines
671 B
Nix
22 lines
671 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 = {
|
|
home-with-symbols = runTest ./standalone/home-with-symbols.nix;
|
|
kitty = runTest ./standalone/kitty.nix;
|
|
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);
|
|
}
|