blob: 1e81a3cb7db534b921fc926e7bd168319ef94404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ self, darwin, ... } @ args:
{ name, nixpkgs, system ? "aarch64-darwin", overlays ? null, extraModules ? null }:
darwin.lib.darwinSystem (
let
configFolder = "${self}/darwin";
entryPoint = "${configFolder}/${name}/configuration.nix";
in
{
system = system;
inputs = { inherit darwin nixpkgs; };
modules = [
{
_module.args = args;
networking.hostName = name;
}
entryPoint
../nixos/modules/nix.nix
] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; }
++ nixpkgs.lib.optionals (extraModules != null) extraModules;
}
)
|