File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 echo " Warning: /root/.nix-profile/etc/profile.d/nix.sh not found. Nix environment may not be fully set up."
1414fi
1515
16+ # Run home-manager switch if home-manager is available
17+ if command -v home-manager & > /dev/null; then
18+ echo " Running home-manager switch..."
19+ home-manager switch || echo " home-manager switch failed."
20+ else
21+ echo " Warning: home-manager not found. Skipping home-manager switch."
22+ fi
23+
1624# Source hm-session-vars.sh if it exists (for home-manager)
1725if [ -f " /root/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
1826 echo " Sourcing /root/.nix-profile/etc/profile.d/hm-session-vars.sh"
2432# Ensure Nix binaries are in PATH for subsequent commands
2533export PATH=" /root/.nix-profile/bin:/root/.nix-profile/sbin:${PATH} "
2634
27- # Run home-manager switch if home-manager is available
28- if command -v home-manager & > /dev/null; then
29- echo " Running home-manager switch..."
30- home-manager switch || echo " home-manager switch failed."
31- else
32- echo " Warning: home-manager not found. Skipping home-manager switch."
33- fi
34-
3535# If no arguments are provided, keep the container running
3636if [[ $# -eq 0 ]]; then
3737 echo " No command provided, keeping container alive..."
You can’t perform that action at this time.
0 commit comments