refactor(homeModules/cli): move common home options to module
This commit is contained in:
parent
a34c6a294c
commit
e1652efa53
2 changed files with 24 additions and 17 deletions
|
@ -6,19 +6,15 @@
|
||||||
cli.git.name = "Mohammad Rafiq";
|
cli.git.name = "Mohammad Rafiq";
|
||||||
cli.git.email = "rafiq@rrv.sh";
|
cli.git.email = "rafiq@rrv.sh";
|
||||||
cli.git.defaultBranch = "prime";
|
cli.git.defaultBranch = "prime";
|
||||||
desktop.windowManager = "hyprland";
|
desktop.windowManager = "hyprland";
|
||||||
desktop.browser = "firefox";
|
desktop.browser = "firefox";
|
||||||
desktop.terminal = "kitty";
|
desktop.terminal = "kitty";
|
||||||
|
|
||||||
home.shellAliases.v = "nvim";
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
|
v = "nvim";
|
||||||
edit = "nvim $(fzf)";
|
edit = "nvim $(fzf)";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zoxide.enable = true;
|
|
||||||
programs.nix-index.enable = true;
|
|
||||||
programs.nix-index-database.comma.enable = true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
ripgrep
|
ripgrep
|
||||||
fzf
|
fzf
|
||||||
|
@ -26,13 +22,13 @@
|
||||||
pantheon.rebuild
|
pantheon.rebuild
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.persistence."/persist/home/rafiq".directories = [
|
||||||
|
"repos"
|
||||||
|
];
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.persistence."/persist/home/rafiq".directories = [
|
|
||||||
"repos"
|
|
||||||
".local/share/zoxide"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,21 @@
|
||||||
shell = lib.pantheon.mkStrOption;
|
shell = lib.pantheon.mkStrOption;
|
||||||
editor = lib.pantheon.mkStrOption;
|
editor = lib.pantheon.mkStrOption;
|
||||||
file-browser = lib.pantheon.mkStrOption;
|
file-browser = lib.pantheon.mkStrOption;
|
||||||
git = {
|
git = {
|
||||||
name = lib.pantheon.mkStrOption;
|
name = lib.pantheon.mkStrOption;
|
||||||
email = lib.pantheon.mkStrOption;
|
email = lib.pantheon.mkStrOption;
|
||||||
defaultBranch = 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;
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue