nixos/modules/dev/editors/nvim.nix
2023-07-07 20:38:41 +03:00

22 lines
369 B
Nix

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