switch on darwin

This commit is contained in:
Noah Masur
2025-03-16 14:00:38 -04:00
parent 1833b4b46c
commit 98356634cd
9 changed files with 59 additions and 74 deletions

View File

@ -138,6 +138,7 @@ lib
specialArgs,
}:
inputs.nixpkgs.lib.nixosSystem {
inherit specialArgs;
pkgs = pkgsBySystem.${system};
modules = [
inputs.home-manager.nixosModules.home-manager
@ -153,19 +154,31 @@ lib
} // homeModule.home-manager;
}
];
specialArgs = {
} // specialArgs;
};
buildDarwin =
{ system, module }:
{
system,
module,
specialArgs,
}:
inputs.darwin.lib.darwinSystem {
pkgs = pkgsBySystem.${system};
inherit system specialArgs;
modules = [
inputs.home-manager.darwinModules.home-manager
inputs.mac-app-util.darwinModules.default
{ imports = (nixFiles ../platforms/nix-darwin); }
{
imports = (nixFiles ../platforms/nix-darwin);
nixpkgs.pkgs = pkgsBySystem.${system};
}
module
{
home-manager = {
extraSpecialArgs = {
inherit colorscheme;
} // specialArgs;
} // homeModule.home-manager;
}
];
};