added nixGL check to .profile

This commit is contained in:
sascha.koenig 2025-11-12 07:39:48 +01:00
parent 04158fbd1c
commit 2ebc124992

View File

@ -227,6 +227,11 @@
fi
if [[ -z $DISPLAY ]] && [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) == /dev/tty1 ]]; then
# Check if nixGL is available, otherwise install it
if ! command -v nixGL &> /dev/null; then
echo "nixGL not found, installing..."
nix profile install github:guibou/nixGL --impure
fi
exec nixGL Hyprland
fi
'';