helm/.direnv/bin/nix-direnv-reload
Anish Lakhwara 2ca6feff4d WIP: Integration branch with darwin and deck support
- Added darwin and jovian inputs
- Added platform-specific package configurations
- Added darwinConfigurations and deck nixosConfiguration
- Copied darwin and deck specific files
- Fixed darwin version compatibility

Some configurations still need debugging
2025-09-12 14:26:38 -07:00

20 lines
701 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [[ ! -d "/home/anish/usr/helm" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/anish/usr/helm")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/anish/usr/helm" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/anish/usr/helm/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/anish/usr/helm/.envrc" "/home/anish/usr/helm/.direnv"/*.rc