nixos/modules/dev/editors/nvim/default.nix
2023-07-10 16:36:02 +03:00

26 lines
513 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.editors.nvim;
in
{
options.modules.dev.editors.nvim = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# because yes
users.users.sako.packages = with pkgs; [
neovim
# lsp
clang-tools
cmake-language-server
# lint
cpplint
];
home-manager.users.sako.xdg.configFile.nvim = {
source = ../../../../config/nvim;
recursive = true;
};
};
}