tests/platforms: move out of flake wrappers module

These should be set up in a dedicated test file, owned by
`tests/default.nix`.

Also refactored to use `callTest`.
This commit is contained in:
Matt Sturgeon 2025-01-21 10:09:46 +00:00
parent 115994f18e
commit 77c78bd04e
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
7 changed files with 40 additions and 51 deletions

View file

@ -14,39 +14,6 @@
defaultSystem = system;
};
};
checks =
{
home-manager-module =
(import ../tests/modules/hm.nix {
inherit pkgs;
inherit (inputs) home-manager;
nixvim = self;
}).activationPackage;
home-manager-extra-files-byte-compiling =
import ../tests/modules/hm-extra-files-byte-compiling.nix
{
inherit pkgs;
inherit (inputs) home-manager;
nixvim = self;
};
}
// pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
nixos-module =
(import ../tests/modules/nixos.nix {
inherit system;
inherit (inputs) nixpkgs;
nixvim = self;
}).config.system.build.toplevel;
}
// pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
darwin-module =
(import ../tests/modules/darwin.nix {
inherit system;
inherit (inputs) nix-darwin;
nixvim = self;
}).system;
};
};
flake = {