From af7a3634ce275acd2ee3e84e3679812939420254 Mon Sep 17 00:00:00 2001 From: joy Date: Wed, 3 Jul 2024 22:28:11 +0200 Subject: [PATCH] rb --- home/default.nix | 20 ++++++-------------- modules/nvchad/default.nix | 3 ++- modules/packages/default.nix | 2 ++ 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/home/default.nix b/home/default.nix index 49fea0c..72737dd 100644 --- a/home/default.nix +++ b/home/default.nix @@ -18,24 +18,16 @@ home.stateVersion = "23.11"; programs.home-manager.enable = true; home.sessionVariables = { - EDITOR = "vim"; + EDITOR = "nvim"; }; -programs.neovim = { - enable = true; - extraConfig = '' - set number relativenumber - ''; -}; -programs.neovim.plugins = [ - pkgs.vimPlugins.nvim-tree-lua - { - plugin = pkgs.vimPlugins.vim-startify; - config = "let g:startify_change_to_vcs_root = 0"; - } -]; + + # basically copy the whole nvchad that is fetched from github to ~/.config/nvim + xdg.configFile."nvim/" = { + source = (pkgs.callPackage ./nvchad/default.nix{}).nvchad; + }; colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium; diff --git a/modules/nvchad/default.nix b/modules/nvchad/default.nix index ea2f3c5..0fbfbc8 100644 --- a/modules/nvchad/default.nix +++ b/modules/nvchad/default.nix @@ -1,4 +1,4 @@ -{ stdenv, pkgs, fetchFromGithub }: +{ stdenv, pkgs, fetchFromGithub, ... }: { nvchad = stdenv.mkDerivation rec { @@ -20,3 +20,4 @@ nvchad = stdenv.mkDerivation rec { ''; }; } + diff --git a/modules/packages/default.nix b/modules/packages/default.nix index 000f658..60737b3 100644 --- a/modules/packages/default.nix +++ b/modules/packages/default.nix @@ -54,5 +54,7 @@ yt-dlp boxbuddy distrobox + neovim + stdenv.mkDerivation ]; }