nix/modules/hosts/darwin.nix
2026-03-30 00:06:09 -04:00

33 lines
685 B
Nix

{
hosts,
inputs,
username,
mkSpecialArgs,
mkHomeManagerModule,
...
}:
let
host = hosts.darwin;
in
{
flake.darwinConfigurations.${host.name} = inputs.nix-darwin.lib.darwinSystem {
system = host.system;
specialArgs = mkSpecialArgs host;
modules = [
../../hosts/${host.name}
inputs.home-manager.darwinModules.home-manager
inputs.nix-homebrew.darwinModules.nix-homebrew
{
users.users.${username}.home = host.homeDirectory;
nix-homebrew = {
enable = true;
enableRosetta = true;
user = username;
autoMigrate = true;
};
}
(mkHomeManagerModule host)
];
};
}