{ config, inputs, lib, ... }: with lib; let cfg = config.nixfiles.modules.neovim; in { options.nixfiles.modules.neovim.enable = mkEnableOption "NeoVim"; config = mkIf cfg.enable { hm = { imports = [inputs.nixvim.homeManagerModules.nixvim]; programs.nixvim = { enable = true; plugins = { lsp.enable = true; nix.enable = true; surround.enable = true; }; }; }; }; }