2020-10-18 10:46:59 +00:00
|
|
|
{
|
|
|
|
# WARNING this is very much still experimental.
|
|
|
|
description = "A collection of darwin modules";
|
|
|
|
|
2020-10-25 11:55:55 +00:00
|
|
|
outputs = { self, nixpkgs }: {
|
2020-10-18 10:46:59 +00:00
|
|
|
lib = {
|
|
|
|
# TODO handle multiple architectures.
|
|
|
|
evalConfig = import ./eval-config.nix { inherit (nixpkgs) lib; };
|
|
|
|
|
2021-04-05 13:05:02 +00:00
|
|
|
darwinSystem = { modules, system, inputs ? { }, ... }@args: self.lib.evalConfig (args // {
|
|
|
|
inherit system;
|
2020-10-18 10:46:59 +00:00
|
|
|
inputs = { inherit nixpkgs; darwin = self; } // inputs;
|
2020-10-25 11:55:55 +00:00
|
|
|
modules = modules ++ [ self.darwinModules.flakeOverrides ];
|
2020-10-18 10:46:59 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2020-10-25 11:55:55 +00:00
|
|
|
darwinModules.flakeOverrides = ./modules/system/flake-overrides.nix;
|
|
|
|
darwinModules.hydra = ./modules/examples/hydra.nix;
|
|
|
|
darwinModules.lnl = ./modules/examples/lnl.nix;
|
|
|
|
darwinModules.ofborg = ./modules/examples/ofborg.nix;
|
|
|
|
darwinModules.simple = ./modules/examples/simple.nix;
|
2020-10-18 10:46:59 +00:00
|
|
|
|
|
|
|
checks.x86_64-darwin.simple = (self.lib.darwinSystem {
|
2021-04-05 13:05:02 +00:00
|
|
|
system = "x86_64-darwin";
|
2020-10-18 10:46:59 +00:00
|
|
|
modules = [ self.darwinModules.simple ];
|
|
|
|
}).system;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|