diff --git a/flake.nix b/flake.nix index b6ed513..e511de4 100644 --- a/flake.nix +++ b/flake.nix @@ -75,7 +75,9 @@ ''; }) (lib.filterAttrs (_: isDeployable) self.nixosConfigurations); - checks = builtins.mapAttrs (_: lib: lib.deployChecks self.deploy) deploy-rs.lib; + checks = (builtins.mapAttrs (_: lib: lib.deployChecks self.deploy) deploy-rs.lib) // { + integration-test = import ./test/vm-test.nix { inherit self nixpkgs system; }; + }; outputsBuilder = channels: { formatter = channels.nixpkgs.alejandra; diff --git a/test/vm-test.nix b/test/vm-test.nix index 57acc80..e15b719 100644 --- a/test/vm-test.nix +++ b/test/vm-test.nix @@ -1,7 +1,6 @@ -{ self, nixpkgs, ... }: +{ self, nixpkgs, system, ... }: let - system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in pkgs.nixosTest {