feat: Add nvchad module and enable nvchad instead of nixvim

This commit is contained in:
ulic-youthlic 2025-10-18 23:10:53 +08:00
parent 66196be557
commit 65a72ab802
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
16 changed files with 460 additions and 4 deletions

View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.david.programs.nvchad;
in
{
options = {
david.programs.nvchad = {
enable = lib.mkEnableOption "nvchad";
};
};
config = lib.mkIf cfg.enable {
programs.nvchad = {
enable = true;
extraPackages = with pkgs; [
editor-runtime
];
neovim = pkgs.neovim-nightly;
backup = true;
};
};
}