Refactor configuration to be more modular.

TODO: Update the documentation in the README to reflect changes
This commit is contained in:
caem 2024-08-26 15:01:33 +02:00
parent 7a30ff9f94
commit af0078d7af
Signed by: caem
GPG key ID: 69A830D03203405F
32 changed files with 889 additions and 1125 deletions

44
modules/packages/nvim.nix Normal file
View file

@ -0,0 +1,44 @@
{ pkgs, ... }:
{
environment.persistence."/nix/persist".users.hu.directories = [
".local/share/nvim"
".local/state/nvim"
];
environment.variables = {
EDITOR = "nvim";
};
home-manager.users.hu = {
programs.neovim = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
lua-language-server
nodePackages.intelephense
nodePackages.typescript-language-server
clang-tools
ripgrep
nil
gcc
basedpyright
rust-analyzer
zathura
git
texliveFull
luajitPackages.jsregexp
luajitPackages.luarocks
fd
texlab
haskell-language-server
];
};
home.file."/home/hu/.config/nvim" = {
source = ../../dotfiles/nvim;
recursive = true;
};
};
}