feat(tests): add eval tests for darwin systems

This commit is contained in:
Ryan Yin
2024-03-14 01:11:54 +08:00
parent 532121ecd4
commit a4d3867a73
11 changed files with 104 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
allSystemNames = builtins.attrNames allSystems;
nixosSystemValues = builtins.attrValues nixosSystems;
darwinSystemValues = builtins.attrValues darwinSystems;
allSystemValues = nixosSystemValues ++ darwinSystemValues;
# Helper function to generate a set of attributes for each system
forAllSystems = func: (nixpkgs.lib.genAttrs allSystemNames func);
@@ -53,7 +54,7 @@ in {
debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;};
# Unit Tests for all NixOS systems.
evalTests = lib.lists.all (it: it.evalTests == {}) nixosSystemValues;
evalTests = lib.lists.all (it: it.evalTests == {}) allSystemValues;
# NixOS Hosts
nixosConfigurations =