mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Cleanup stuff only necessary
This commit is contained in:
11
install.sh
11
install.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user