Skip to content

Commit 8069785

Browse files
committed
Use testers.nixosTest
1 parent 40d9101 commit 8069785

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
in
1818
{
1919
checks = forAllSystems (pkgs: {
20-
default = pkgs.callPackage ./test.nix { module = inputs.self.nixosModules.default; };
20+
default = pkgs.callPackage ./test.nix { };
2121
lib = pkgs.callPackage ./lib-tests.nix { };
2222
});
2323
nixosModules.default = ./module.nix;

test.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{ nixosTest, module, ... }:
2-
nixosTest {
1+
{ testers }:
2+
testers.nixosTest {
33
name = "nixos-router";
44

55
nodes.router = {
6-
imports = [ module ];
6+
imports = [ ./module.nix ];
77
virtualisation.vlans = [ 1 ];
88
router = {
99
enable = true;

0 commit comments

Comments
 (0)