add regression test for macOS evaluation
This commit is contained in:
@@ -67,6 +67,9 @@ in
|
||||
lib.mapAttrs' (
|
||||
name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
|
||||
) (lib.filterAttrs (n: _: !lib.hasPrefix "test-" n) self.nixosConfigurations)
|
||||
// lib.mapAttrs' (
|
||||
name: config: lib.nameValuePair "darwin-${name}" config.config.system.build.toplevel
|
||||
) (self.darwinConfigurations or { })
|
||||
// lib.mapAttrs' (n: lib.nameValuePair "package-${n}") packagesToBuild
|
||||
// lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells
|
||||
// lib.mapAttrs' (name: config: lib.nameValuePair "home-manager-${name}" config.activation-script) (
|
||||
|
||||
@@ -62,6 +62,14 @@
|
||||
{
|
||||
clan = {
|
||||
meta.name = "clan-core";
|
||||
inventory = {
|
||||
services = { };
|
||||
machines = {
|
||||
"test-darwin-machine" = {
|
||||
machineClass = "darwin";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
systems = import systems;
|
||||
imports =
|
||||
|
||||
@@ -51,9 +51,7 @@ let
|
||||
|
||||
allMachines = config.clanInternals.inventoryClass.machines; # <- inventory.machines <- clan.machines
|
||||
|
||||
machineClasses = lib.mapAttrs (
|
||||
name: _: inventory.machines.${name}.machineClass
|
||||
) allMachines;
|
||||
machineClasses = lib.mapAttrs (name: _: inventory.machines.${name}.machineClass) allMachines;
|
||||
|
||||
configurations = lib.mapAttrs (
|
||||
name: _:
|
||||
|
||||
7
machines/test-darwin-machine/configuration.nix
Normal file
7
machines/test-darwin-machine/configuration.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
# Basic system configuration
|
||||
system.stateVersion = 5;
|
||||
|
||||
# Set the nixpkgs system
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
||||
Reference in New Issue
Block a user