22 lines
436 B
Nix
22 lines
436 B
Nix
{
|
|
flake,
|
|
self,
|
|
inputs,
|
|
system ? "aarch64-darwin",
|
|
...
|
|
}: let
|
|
name = builtins.baseNameOf ./.;
|
|
in inputs.nix-darwin.lib.darwinSystem {
|
|
inherit system;
|
|
specialArgs = { inherit flake self inputs; };
|
|
modules = [
|
|
inputs.home-manager.darwinModules.home-manager
|
|
{
|
|
networking.hostName = name;
|
|
nixpkgs.hostPlatform = system;
|
|
nixpkgs.overlays = [ self.overlays.default ];
|
|
}
|
|
./${name}.nix
|
|
];
|
|
}
|