From 4db6b13ffdc36bc06d5415668422cbbba10c445a Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 19 Dec 2024 20:59:37 -0500 Subject: [PATCH] chore(tests): move to modules folder --- flake.nix | 8 ++++---- {tests => modules/tests}/common.nix | 0 {tests => modules/tests}/darwin.nix | 0 {tests => modules/tests}/home.nix | 2 +- {tests => modules/tests}/nixos.nix | 2 +- {tests => modules/tests}/username.txt | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename {tests => modules/tests}/common.nix (100%) rename {tests => modules/tests}/darwin.nix (100%) rename {tests => modules/tests}/home.nix (98%) rename {tests => modules/tests}/nixos.nix (98%) rename {tests => modules/tests}/username.txt (100%) diff --git a/flake.nix b/flake.nix index 9a284ca3..0c3fe1db 100644 --- a/flake.nix +++ b/flake.nix @@ -194,13 +194,13 @@ { darwin = { - test-unstable = callUnstable ./tests/darwin.nix; - test-stable = callStable ./tests/darwin.nix; + test-unstable = callUnstable ./modules/tests/darwin.nix; + test-stable = callStable ./modules/tests/darwin.nix; }; linux = { - test-unstable = callUnstable ./tests/nixos.nix; - test-stable = callStable ./tests/nixos.nix; + test-unstable = callUnstable ./modules/tests/nixos.nix; + test-stable = callStable ./modules/tests/nixos.nix; }; } .${kernelName} or { }; diff --git a/tests/common.nix b/modules/tests/common.nix similarity index 100% rename from tests/common.nix rename to modules/tests/common.nix diff --git a/tests/darwin.nix b/modules/tests/darwin.nix similarity index 100% rename from tests/darwin.nix rename to modules/tests/darwin.nix diff --git a/tests/home.nix b/modules/tests/home.nix similarity index 98% rename from tests/home.nix rename to modules/tests/home.nix index dd4dd22f..7ba503e1 100644 --- a/tests/home.nix +++ b/modules/tests/home.nix @@ -2,7 +2,7 @@ { imports = [ - ../modules/home-manager + ../home-manager ./common.nix ]; diff --git a/tests/nixos.nix b/modules/tests/nixos.nix similarity index 98% rename from tests/nixos.nix rename to modules/tests/nixos.nix index 5198e49d..9358d712 100644 --- a/tests/nixos.nix +++ b/modules/tests/nixos.nix @@ -17,7 +17,7 @@ testers.runNixOSTest { { imports = [ home-manager.nixosModules.default - ../modules/nixos + ../nixos ./common.nix ]; diff --git a/tests/username.txt b/modules/tests/username.txt similarity index 100% rename from tests/username.txt rename to modules/tests/username.txt