nixos-config-master/config.sh
jeirmeister a5f747815f fix: resolve environment conflicts and configuration issues
Python Environment:
- Update Python package references to use top-level packages
- Move pipenv and poetry from python3Packages to global packages
- Fix environment variable conflicts between Python and Rust

Rust Configuration:
- Remove cargo package to prevent collision with rustup
- Keep cargo-related utility packages
- Move PATH modifications to shell initialization

Shell Configuration:
- Move PATH modifications from sessionVariables to zsh.initExtra
- Fix PATH order for language tools using shell initialization
- Ensure proper loading order for development tools

Terminal Configuration:
- Replace kitty theme configuration with direct color settings
- Implement Dracula color scheme directly in kitty settings
- Remove external theme file dependency

This commit resolves various dependency conflicts and improves
the reliability of language-specific environment configurations
while maintaining functionality across all development tools.
2024-10-30 21:51:16 -07:00

33 lines
854 B
Bash
Executable File

#!/usr/bin/env bash
# README # ------
# Configure the config.json file in this same directory for an AI chatbot to
# Assist in making direct changes to files.
set -euo pipefail
# Make sure jq is available
if ! command -v jq &> /dev/null; then
echo "Error: jq is required but not installed"
exit 1
fi
# Make sure config.json exists
if [ ! -f "config.json" ]; then
echo "Error: config.json not found in current directory"
exit 1
fi
echo "Creating directories and files..."
# Process each key in the JSON configuration
for file in $(jq -r 'keys[]' config.json); do
# Create directory if it doesn't exist
dir=$(dirname "$file")
mkdir -p "$dir"
# Write content to file
jq -r --arg file "$file" '.[$file]' config.json > "$file"
echo "Created: $file"
done
echo "Configuration files have been created successfully!"