feat: partial modularization of home.nix

This commit is contained in:
2024-04-14 01:51:15 +08:00
parent 14b33a0e1f
commit 1b546b236b
7 changed files with 178 additions and 121 deletions

9
modules/neovim.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
defaultEditor = true;
# extraLuaConfig = '' '';
# extraPackages = [ ];
};
}

38
modules/zsh.nix Normal file
View File

@@ -0,0 +1,38 @@
{ config, pkgs, ... }:
{
home.packages = [
pkgs.zsh-completions
];
programs.zsh = {
enable = true;
prezto = {
enable = true;
editor.keymap = "vi";
editor.dotExpansion = true;
pmodules = [
"environment"
"terminal"
"utility"
"directory"
"editor"
"history"
"syntax-highlighting"
"history-substring-search"
"autosuggestions"
"completion"
];
};
shellAliases = {
lg = "lazygit";
cat = "bat";
diff = "delta";
s = "kitty +kitten ssh";
};
};
programs.starship = {
enable = true;
enableZshIntegration = true;
};
}