Add neovim configuration to seperate file
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
35
terminal-environment/editor.nix
Normal file
35
terminal-environment/editor.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user