kubernetes vm building

This commit is contained in:
BOTAlex 2026-01-24 16:43:58 +01:00
parent 4e2d73d546
commit 376912c631
15 changed files with 319 additions and 15 deletions

24
modules/getNvim.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }: {
environment.systemPackages = [
(pkgs.writeShellScriptBin "get-nvim" ''
set -e
# 1. Define Variables
NVIM_CONFIG_DIR="$HOME/.config/nvim"
REPO_URL="https://github.com/MagicBOTAlex/NVimConfigs"
# 2. Delete Existing Config
if [ -d "$NVIM_CONFIG_DIR" ]; then
echo "🗑 Deleting existing Neovim configuration at $NVIM_CONFIG_DIR..."
rm -rf "$NVIM_CONFIG_DIR"
fi
# 3. Clone Fresh
echo " Cloning new Neovim Configs..."
git clone "$REPO_URL" "$NVIM_CONFIG_DIR"
echo " Done!"
'')
];
}