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
|
2023-06-18 09:51:33 +00:00
|
|
|
home-config = {
|
|
|
|
supported_systems,
|
|
|
|
hm,
|
|
|
|
tested_systems ? [],
|
|
|
|
}:
|
|
|
|
hm
|
|
|
|
// {
|
|
|
|
_supported_systems = supported_systems;
|
|
|
|
_tested_systems = tested_systems;
|
|
|
|
};
|
2023-06-18 06:31:47 +00:00
|
|
|
|
|
|
|
base-modules = [
|
|
|
|
home-profiles.alacritty
|
2023-06-23 03:52:40 +00:00
|
|
|
home-profiles.kitty
|
2023-06-20 21:10:00 +00:00
|
|
|
home-profiles.git
|
2023-06-18 06:31:47 +00:00
|
|
|
home-profiles.ssh
|
|
|
|
home-profiles.shells
|
2023-06-18 09:51:33 +00:00
|
|
|
{config.programs.home-manager.enable = true;}
|
2023-06-18 06:31:47 +00:00
|
|
|
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;
|
2023-06-18 09:51:33 +00:00
|
|
|
modules =
|
|
|
|
base-modules
|
|
|
|
++ [
|
2023-07-25 20:26:08 +00:00
|
|
|
home-profiles.darwin-patches
|
2023-06-18 09:51:33 +00:00
|
|
|
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
|
|
|
|
2023-06-18 09:51:33 +00:00
|
|
|
{
|
|
|
|
home.username = "htran";
|
|
|
|
home.homeDirectory = "/Users/htran";
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
}
|
2023-07-01 00:56:33 +00:00
|
|
|
home-profiles.passman
|
2023-06-18 09:51:33 +00:00
|
|
|
];
|
2023-06-18 06:31:47 +00:00
|
|
|
};
|
|
|
|
};
|
2023-07-04 08:43:44 +00:00
|
|
|
|
|
|
|
homeConfigurations.hungtran = home-config {
|
|
|
|
supported_systems = ["aarch64-darwin" "x86_64-darwin"];
|
|
|
|
tested_systems = ["aarch64-darwin"];
|
|
|
|
hm = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
modules =
|
|
|
|
base-modules
|
|
|
|
++ [
|
2023-07-25 20:26:08 +00:00
|
|
|
home-profiles.darwin-patches
|
2023-07-04 08:43:44 +00:00
|
|
|
home-profiles.nerd_font_module
|
2023-07-10 09:08:36 +00:00
|
|
|
home-profiles.git-pegasust
|
2023-07-04 08:43:44 +00:00
|
|
|
home-profiles.dev-packages
|
|
|
|
home-profiles.zk
|
|
|
|
home-modules.darwin-spotlight
|
|
|
|
|
|
|
|
{
|
|
|
|
home.username = "hungtran";
|
|
|
|
home.homeDirectory = "/Users/hungtran";
|
|
|
|
home.stateVersion = "23.11";
|
2023-09-25 05:01:51 +00:00
|
|
|
repo.shells.shellAliases = {
|
|
|
|
git-lol = ''
|
|
|
|
git log --graph --decorate --color=always --abbrev-commit \
|
|
|
|
--pretty=format:'%C(auto)%h %d %C(cyan)%s %C(green)(%cr)%C(reset)' |
|
|
|
|
while IFS= read -r line; do
|
|
|
|
# Format the relative time
|
|
|
|
line=$(echo "$line" | sed -e 's/ minute/ min/' \
|
|
|
|
-e 's/ week/ wk/' \
|
|
|
|
-e 's/ hour/ hr/' \
|
|
|
|
-e 's/ month/ mo/' \
|
|
|
|
-e 's/ year/ yr/' \
|
|
|
|
-e 's/ ago//')
|
|
|
|
|
|
|
|
# Print the formatted line
|
|
|
|
echo "$line"
|
|
|
|
done | less -R
|
|
|
|
'';
|
|
|
|
git-lola = ''
|
|
|
|
git log --graph --decorate --color=always --abbrev-commit --all\
|
|
|
|
--pretty=format:'%C(auto)%h %d %C(cyan)%s %C(green)(%cr)%C(reset)' |
|
|
|
|
while IFS= read -r line; do
|
|
|
|
# Format the relative time
|
|
|
|
line=$(echo "$line" | sed -e 's/ minute/ min/' \
|
|
|
|
-e 's/ week/ wk/' \
|
|
|
|
-e 's/ hour/ hr/' \
|
|
|
|
-e 's/ month/ mo/' \
|
|
|
|
-e 's/ year/ yr/' \
|
|
|
|
-e 's/ ago//')
|
|
|
|
|
|
|
|
# Print the formatted line
|
|
|
|
echo "$line"
|
|
|
|
done | less -R
|
|
|
|
'';
|
|
|
|
};
|
2023-07-04 08:43:44 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-06-18 06:31:47 +00:00
|
|
|
}
|