mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
28 lines
860 B
Nix
28 lines
860 B
Nix
{
|
|
# WARNING this is very much still experimental.
|
|
description = "A collection of darwin modules";
|
|
|
|
outputs = { self, nixpkgs }: {
|
|
|
|
lib = {
|
|
# TODO handle multiple architectures.
|
|
evalConfig = import ./eval-config.nix { inherit (nixpkgs) lib; };
|
|
|
|
darwinSystem = { modules, inputs ? {}, ... }@args: self.lib.evalConfig (args // {
|
|
inputs = { inherit nixpkgs; darwin = self; } // inputs;
|
|
modules = modules ++ [
|
|
];
|
|
});
|
|
};
|
|
|
|
darwinModules.lnl = import ./modules/examples/lnl.nix;
|
|
darwinModules.simple = import ./modules/examples/simple.nix;
|
|
darwinModules.ofborg = import ./modules/examples/ofborg.nix;
|
|
darwinModules.hydra = import ./modules/examples/hydra.nix;
|
|
|
|
checks.x86_64-darwin.simple = (self.lib.darwinSystem {
|
|
modules = [ self.darwinModules.simple ];
|
|
}).system;
|
|
|
|
};
|
|
}
|