mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-19 15:31:22 +02:00
feat(tests): add eval tests for darwin systems
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user