Last active
June 20, 2025 07:50
-
-
Save jukefr/948d541edc7533c0ba95631189055e99 to your computer and use it in GitHub Desktop.
distrobox setup for nixos for 42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [...] | |
# Remove all ENV vars | |
unset $(env | cut -d= -f1) | |
# Set back variables | |
export TERM=xterm | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.cargo/bin | |
export SHELL=/usr/bin/bash | |
export USER=user | |
export SHLVL=1 | |
export XDG_RUNTIME_DIR=/run/user/1000 | |
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus | |
export LD_LIBRARY_PATH=/lib | |
export HOME=/home/user | |
# Misc | |
sudo hostname 42 | |
# Link stuff in correct locations | |
sudo ln -s /lib/x86_64-linux-gnu/* /lib/ 2> /dev/null | |
sudo ln -s /usr/include/x86_64-linux-gnu/* /usr/include/ 2>/dev/null | |
sudo mkdir -p /usr/include/readline/readline | |
sudo ln -s /usr/include/readline/* /usr/include/readline/readline 2>/dev/null | |
# Rust stuff | |
. "$HOME/.cargo/env" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment