mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
33 lines
685 B
Nix
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)
|
|
];
|
|
};
|
|
}
|