mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-02-04 05:39:18 +01:00
kubernetes vm building
This commit is contained in:
parent
4e2d73d546
commit
376912c631
15 changed files with 319 additions and 15 deletions
24
modules/getNvim.nix
Normal file
24
modules/getNvim.nix
Normal 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!"
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue