aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-01-05 18:23:30 +0100
committerNaïm Favier <n@monade.li>2023-01-05 18:23:30 +0100
commitf1ee4ece806d109df8f6994d9e70eb7f05505709 (patch)
treed5bd6d5eda1773ae8de5a73a1039ba7998bef911 /tests
parentd02c5a41da68908bd88d7a697abc52a04826894e (diff)
Don't check NixOS modules
NixOS modules can be paths. Rather than dig further down into the layer violation, don't check anything specific to NixOS modules.
Diffstat (limited to 'tests')
-rw-r--r--tests/flakes/check.sh16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/flakes/check.sh b/tests/flakes/check.sh
index f572aa75c..278ac7fa4 100644
--- a/tests/flakes/check.sh
+++ b/tests/flakes/check.sh
@@ -41,9 +41,9 @@ nix flake check $flakeDir
cat > $flakeDir/flake.nix <<EOF
{
outputs = { self }: {
- nixosModules.foo = {
+ nixosModules.foo = assert false; {
a.b.c = 123;
- foo = assert false; true;
+ foo = true;
};
};
}
@@ -66,18 +66,6 @@ nix flake check $flakeDir
cat > $flakeDir/flake.nix <<EOF
{
outputs = { self }: {
- nixosModule = { config, pkgs }: {
- a.b.c = 123;
- };
- };
-}
-EOF
-
-(! nix flake check $flakeDir)
-
-cat > $flakeDir/flake.nix <<EOF
-{
- outputs = { self }: {
packages.system-1.default = "foo";
packages.system-2.default = "bar";
};