mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared/setups/development: set conditionals for NixVim module
This commit is contained in:
parent
24839f9a0f
commit
e2c80e14b3
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user