30 lines
639 B
Nix
30 lines
639 B
Nix
{ inputs
|
|
}:
|
|
{ system
|
|
, username
|
|
, email
|
|
, hostname
|
|
}:
|
|
let
|
|
system-config = import ../module/configuration.nix { inherit hostname; };
|
|
home-manager-config = import ../module/home-manager.nix { inherit email; };
|
|
in
|
|
inputs.darwin.lib.darwinSystem {
|
|
inherit system;
|
|
|
|
modules = [
|
|
{
|
|
users.users.${username}.home = "/Users/${username}";
|
|
}
|
|
|
|
system-config
|
|
|
|
inputs.home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."${username}" = home-manager-config;
|
|
home-manager.backupFileExtension = "backup";
|
|
}
|
|
];
|
|
}
|