nixos/modules/dev/editors/nvim.nix

25 lines
418 B
Nix
Raw Normal View History

2023-07-07 21:38:41 +04:00
{ config, pkgs, lib, ...}:
with lib;
let cfg = config.modules.dev.editors.nvim;
in {
options.modules.dev.editors.nvim = {
2023-07-07 23:46:47 +04:00
enable = mkOption {
type = types.bool;
default = false;
};
2023-07-07 21:38:41 +04:00
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
neovim
];
xdg.configFile = {
nvim = {
source = ../../../config/nvim;
recursive = true;
};
};
};
}