users/foo-dogsquared/setups/development: set conditionals for NixVim module

This commit is contained in:
Gabriel Arazas 2024-02-04 22:20:30 +08:00
parent 24839f9a0f
commit e2c80e14b3
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -26,17 +26,6 @@ in
servers.enable = true; servers.enable = true;
}; };
programs.neovim = lib.mkIf (!config.programs.nixvim.enable) {
enable = true;
package = pkgs.neovim-nightly;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withPython3 = true;
withRuby = true;
};
systemd.user.sessionVariables = { systemd.user.sessionVariables = {
MANPAGER = "nvim +Man!"; MANPAGER = "nvim +Man!";
EDITOR = "nvim"; EDITOR = "nvim";
@ -50,6 +39,19 @@ in
]; ];
} }
(lib.mkIf (!config.programs.nixvim.enable) {
programs.neovim = {
enable = true;
package = pkgs.neovim-nightly;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withPython3 = true;
withRuby = true;
};
})
(lib.mkIf userCfg.programs.git.enable { (lib.mkIf userCfg.programs.git.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
diffoscope # An oversized caffeine grinder. diffoscope # An oversized caffeine grinder.