Update env

This commit is contained in:
crater2150 2024-03-13 14:13:29 +01:00
parent 16e5256542
commit 67b66fdeed
2 changed files with 9 additions and 0 deletions

5
env/20_services.zsh vendored
View file

@ -1,4 +1,9 @@
if [[ $DISPLAY && $UID != 0 ]]; then
export SVDIR="$HOME/.local/session_service"
export SVDIR_TEMPLATES="$HOME/.service-available"
elif [[ $UID != 0 ]]; then
export SVDIR=$HOME/.service
export SVDIR_TEMPLATES="$HOME/.service-available"
else
export SVDIR_TEMPLATES="/etc/sv"
fi

4
env/90_podman-socket.zsh vendored Normal file
View file

@ -0,0 +1,4 @@
if command -v podman &>/dev/null; then
export DOCKER_SOCKET=$(podman system info -f '{{.Host.RemoteSocket.Path}}')
export DOCKER_HOST=unix://$DOCKER_SOCKET
fi