diff --git a/users/common/neovim/default.nix b/users/common/neovim/default.nix index ded4a1b..39cb353 100644 --- a/users/common/neovim/default.nix +++ b/users/common/neovim/default.nix @@ -4,19 +4,20 @@ pkgs, ... }: { - programs.neovim = { - enable = true; - viAlias = true; - vimAlias = true; - vimdiffAlias = true; - withPython3 = true; - extraPython3Packages = pyPkgs: with pyPkgs; [openai]; - withNodeJs = true; - defaultEditor = true; + imports = [ + ./minimal.nix + ]; + + config = lib.mkIf (!config.home.minimal) { + programs.neovim = { + withPython3 = true; + extraPython3Packages = pyPkgs: with pyPkgs; [openai]; + withNodeJs = true; + }; + xdg.configFile = { + "nvim/lua".source = ./lua; + "nvim/init.lua".source = ./init.lua; + }; + home.packages = with pkgs; [gcc shellcheck stylua]; }; - xdg.configFile = lib.mkIf (!config.home.minimal) { - "nvim/lua".source = ./lua; - "nvim/init.lua".source = ./init.lua; - }; - home.packages = with pkgs; [gcc shellcheck stylua]; } diff --git a/users/common/neovim/minimal.nix b/users/common/neovim/minimal.nix new file mode 100644 index 0000000..c13b05e --- /dev/null +++ b/users/common/neovim/minimal.nix @@ -0,0 +1,9 @@ +{ + programs.neovim = { + enable = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + defaultEditor = true; + }; +}