refactor(homeModules/cli): move common home options to module

This commit is contained in:
Mohammad Rafiq 2025-05-20 12:42:36 +08:00
parent a34c6a294c
commit e1652efa53
No known key found for this signature in database
2 changed files with 24 additions and 17 deletions

View file

@ -6,19 +6,15 @@
cli.git.name = "Mohammad Rafiq";
cli.git.email = "rafiq@rrv.sh";
cli.git.defaultBranch = "prime";
desktop.windowManager = "hyprland";
desktop.browser = "firefox";
desktop.terminal = "kitty";
desktop.windowManager = "hyprland";
desktop.browser = "firefox";
desktop.terminal = "kitty";
home.shellAliases.v = "nvim";
home.shellAliases = {
v = "nvim";
edit = "nvim $(fzf)";
};
programs.zoxide.enable = true;
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
ripgrep
fzf
@ -26,13 +22,13 @@
pantheon.rebuild
];
home.persistence."/persist/home/rafiq".directories = [
"repos"
];
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
home.persistence."/persist/home/rafiq".directories = [
"repos"
".local/share/zoxide"
];
}

View file

@ -4,10 +4,21 @@
shell = lib.pantheon.mkStrOption;
editor = lib.pantheon.mkStrOption;
file-browser = lib.pantheon.mkStrOption;
git = {
name = lib.pantheon.mkStrOption;
email = lib.pantheon.mkStrOption;
defaultBranch = lib.pantheon.mkStrOption;
};
git = {
name = lib.pantheon.mkStrOption;
email = lib.pantheon.mkStrOption;
defaultBranch = lib.pantheon.mkStrOption;
};
};
config = lib.mkMerge [
{
programs.zoxide.enable = true;
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [ "./local/share/zoxide" ];
}
{
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
}
];
}