Skip to content

Commit 5a9d86c

Browse files
committed
Add checks for proper nix-darwin evaluation
1 parent b4c2e6f commit 5a9d86c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/flake.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,29 @@
3737
system = "aarch64-darwin";
3838

3939
modules = [
40+
determinate.darwinModules.default
4041
{
4142
nix.enable = false;
4243
system.stateVersion = 5;
4344
}
4445
];
4546
}).system;
47+
48+
checks.aarch64-darwin.nix-darwin-custom-config =
49+
(nix-darwin.lib.darwinSystem {
50+
system = "aarch64-darwin";
51+
52+
modules = [
53+
determinate.darwinModules.default
54+
{
55+
nix.enable = false;
56+
system.stateVersion = 5;
57+
determinate-nix.customSettings = {
58+
extra-experimental-features = [ "build-time-fetch-tree" ];
59+
flake-registry = "/etc/nix/flake-registry.json";
60+
};
61+
}
62+
];
63+
}).system;
4664
};
4765
}

0 commit comments

Comments
 (0)