I am batman

This commit is contained in:
2026-07-10 20:07:29 -04:00
commit 4aac54bff6
175 changed files with 18136 additions and 0 deletions

5
modules/nvim/default.nix Normal file
View File

@@ -0,0 +1,5 @@
{
imports = [
./nvim.nix
];
}

26
modules/nvim/nvim.nix Normal file
View File

@@ -0,0 +1,26 @@
{ config, pkgs, ... }:
let
nvimConfigDir = "${config.home.homeDirectory}/.config/nvim";
nvimGitRepo = "https://github.com/gibbyDev/nvim.git"; # Change this
git = "${pkgs.git}/bin/git";
in
{
home.activation.cloneNvimConfig = config.lib.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -d "${nvimConfigDir}/.git" ]; then
echo "Cloning Neovim config..."
${git} clone --depth=1 ${nvimGitRepo} ${nvimConfigDir}
else
echo "Neovim config already exists, pulling latest changes..."
${git} -C ${nvimConfigDir} pull
fi
'';
programs.neovim = {
enable = true;
defaultEditor = true;
package = pkgs.neovim-unwrapped;
extraPackages = with pkgs; [ wl-clipboard xclip xsel ];
};
}