Cleanup stuff only necessary

This commit is contained in:
2025-08-31 01:20:48 +02:00
parent 75d30efc6c
commit b1b36e418f
20 changed files with 28 additions and 1832 deletions

View File

@@ -1,16 +1,7 @@
#!/bin/sh
# Script to link the configuration of a host to the current directory
# to the root to make access easier
#
# This does not need to be used when flakes is enabled
# Yes need for nvim integration of nixos
cd $HOME/configuration/nixos
directory="hosts"
# List all folder names in the specified directory
echo "Known hosts:"
folders=()
counter=1
@@ -38,7 +29,7 @@ if [ "$folder_index" -lt 0 ] || [ "$folder_index" -ge "${#folders[@]}" ]; then
exit 1
fi
selected_folder="${folders[$folder_index]}" # Use the 0-based index
selected_folder="${folders[$folder_index]}"
selected_folder_path="$directory/$selected_folder"
ln -sf "$selected_folder_path/configuration.nix" "configuration.nix"