Files
nixcfg/users/configs/system/nvim/default.nix
2023-07-21 00:10:01 +01:00

28 lines
554 B
Nix

{pkgs, ...}: let
nvim = pkgs.stdenv.mkDerivation {
name = "nvim";
src = pkgs.fetchFromGitea {
domain = "git.broccoli.town";
owner = "dp";
repo = "nvim";
rev = "c5206e95ea683fc2d496c0cde210f159e1521e4b";
hash = "sha256-TDfXAV+10gvj2WtkgZzI6Z5LrW9e1sOb+8S4b9i1hEU=";
};
installPhase = ''
mkdir -p $out
cp -r * $out/
rm $out/lazy-lock.json
'';
};
in {
programs.neovim.enable = true;
home.file = {
".config/nvim" = {
recursive = true;
source = nvim;
};
};
}