Add neovim configuration to seperate file

This commit is contained in:
Nina Chloé Kassandra Reiß
2026-02-27 21:44:14 +01:00
parent b8ca6cf5c4
commit 408081c786
2 changed files with 39 additions and 11 deletions

View File

@@ -4,22 +4,15 @@ let
in in
{ {
environment.systemPackages = with pkgs; [ imports = [
vim ./editor.nix
neovim
astyle
python313Packages.pynvim
hyfetch
fzf
fzf-zsh
ripgrep
ripgrep-all
]; ];
environment.variables = { environment.systemPackages = with pkgs; [
EDITOR = "nvim"; astyle
}; hyfetch
fzf-zsh
];
programs.tmux = { programs.tmux = {
enable = true; enable = true;

View File

@@ -0,0 +1,35 @@
{ config, pkgs, ... }:
let
dotfiles_nvim = pkgs.fetchgit {
url = "https://git.nichkara.eu/nichkara/nvim";
rev = "4b1aa4c6342a5c1df864247aca3e553d81cc82a9";
sha256 = "sha256-0ODOTolosRHVm0Uc2NRGBpUFM5W3C53ScaL9OQQviW0=";
};
profile = import ../profile.nix;
in
{
environment.systemPackages = with pkgs; [
vim
fzf
ripgrep
ripgrep-all
];
programs.neovim = {
enable = true;
defaultEditor = true;
withPython3 = true;
withRuby = true;
withNodeJs = true;
};
home-manager.users.${profile.username} = { ... }: {
home.file.".config/nvim" = {
source = dotfiles_nvim;
recursive = true;
};
};
}