nixos/modules/dev/editors/nvim.nix
2023-07-07 22:46:47 +03:00

25 lines
418 B
Nix

{ config, pkgs, lib, ...}:
with lib;
let cfg = config.modules.dev.editors.nvim;
in {
options.modules.dev.editors.nvim = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
neovim
];
xdg.configFile = {
nvim = {
source = ../../../config/nvim;
recursive = true;
};
};
};
}