2023-06-18 06:31:47 +00:00
|
|
|
# TODO: this should use winnow with a fair matching of supported systems
|
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
cell,
|
|
|
|
}: let
|
|
|
|
inherit (cell) home-profiles home-modules;
|
|
|
|
inherit (inputs) home-manager;
|
|
|
|
pkgs = inputs.nixpkgs;
|
|
|
|
|
|
|
|
# hm is derivation that is compatible with homeConfigurations
|
|
|
|
home-config = {supported_systems, hm, tested_systems ? []}:
|
|
|
|
hm // {
|
|
|
|
_supported_systems = supported_systems;
|
|
|
|
_tested_systems = tested_systems;
|
|
|
|
};
|
|
|
|
|
|
|
|
base-modules = [
|
|
|
|
home-profiles.alacritty
|
2023-06-18 09:06:08 +00:00
|
|
|
# home-profiles.git
|
2023-06-18 06:31:47 +00:00
|
|
|
home-profiles.ssh
|
|
|
|
home-profiles.shells
|
|
|
|
({config.programs.home-manager.enable = true;})
|
|
|
|
home-profiles.nix-index
|
2023-06-18 09:06:08 +00:00
|
|
|
home-profiles.neovim
|
2023-06-18 06:31:47 +00:00
|
|
|
];
|
|
|
|
in {
|
2023-06-18 07:52:08 +00:00
|
|
|
homeConfigurations.htran = home-config {
|
2023-06-18 06:31:47 +00:00
|
|
|
supported_systems = ["aarch64-darwin" "x86_64-darwin"];
|
|
|
|
tested_systems = ["aarch64-darwin"];
|
2023-06-18 07:52:08 +00:00
|
|
|
hm = home-manager.lib.homeManagerConfiguration {
|
2023-06-18 06:31:47 +00:00
|
|
|
inherit pkgs;
|
|
|
|
modules = base-modules ++ [
|
|
|
|
home-profiles.nerd_font_module
|
|
|
|
home-profiles.git-htran
|
|
|
|
home-profiles.dev-packages
|
|
|
|
home-profiles.zk
|
|
|
|
home-modules.darwin-spotlight
|
2023-06-18 07:52:08 +00:00
|
|
|
|
|
|
|
({
|
|
|
|
home.username = "htran";
|
|
|
|
home.homeDirectory = "/Users/htran";
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
})
|
2023-06-18 06:31:47 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|