flake.nix: run tests against pinned nixpkgs

and migrate to the new runTest, which evaluates much faster.
This commit is contained in:
Martin Weinelt 2025-05-10 02:36:21 +02:00
parent 1feca02008
commit ef1e02e555
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
7 changed files with 80 additions and 56 deletions

View file

@ -14,18 +14,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
import <nixpkgs/nixos/tests/make-test-python.nix> {
{
name = "minimal";
nodes.machine =
{ config, pkgs, ... }:
{
imports = [
./../default.nix
];
};
nodes.machine = {
imports = [ ./../default.nix ];
};
testScript =
''
machine.wait_for_unit("multi-user.target");
'';
testScript = ''
machine.wait_for_unit("multi-user.target");
'';
}