nixos-config/modules/editors/neovim.nix
Gabriel Arazas 4085fce69c Make the setup hardware-independent
One of the bigger changes is to make the setup hardware-independent
which is nice for easier (re-)installations.
Finally about time it happens.

Another big thing is the update of the README, now with some
self-reminding pitch why choose NixOS (or something similar like GuixSD)
which could be nice for other people too, provided they've come across
my NixOS config.

I made the module docstrings a bit more consistent (though still
useless, to be honest).
I've also updated config for Visual Studio Code.
2020-09-01 23:10:44 +08:00

32 lines
624 B
Nix
Executable File

# (Neo)Vim is love, (Neo)Vim is life.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.editors.neovim = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.editors.neovim.enable {
my.packages = with pkgs; [
editorconfig-core-c # Editorconfig is a MUST, you feel me?!
];
my.home = {
programs.neovim = {
enable = true;
withPython3 = true;
withRuby = true;
};
xdg.configFile."nvim" = {
source = ../../config/nvim;
recursive = true;
};
};
};
}