nix/modules/nvchad/default.nix

23 lines
506 B
Nix
Raw Normal View History

2024-07-03 22:28:11 +02:00
{ stdenv, pkgs, fetchFromGithub, ... }:
2024-07-03 22:19:07 +02:00
{
2024-07-03 22:40:31 +02:00
programs.neovim.enable = true;
2024-07-03 22:19:07 +02:00
2024-07-03 22:40:31 +02:00
xdg.configFile."nvim".source = pkgs.stdenv.mkDerivation {
name = "NvChad";
src = pkgs.fetchFromGitHub {
owner = "NvChad";
repo = "NvChad";
rev = "f17e83010f25784b58dea175c6480b3a8225a3e9";
hash = "sha256-P5TRjg603/7kOVNFC8nXfyciNRLsIeFvKsoRCIwFP3I=";
};
installPhase = ''
mkdir -p $out
cp -r ./* $out/
cd $out/
cp -r ${./my_nvchad_config} $out/lua/custom
'';
2024-07-03 22:19:07 +02:00
};
}
2024-07-03 22:28:11 +02:00