Hello! My name is Tatiana.
There was a problem with the path to root user home directory. Below I provide diff output for original script and my modified script.
266c266,267
< ln -sf /var/guix/profiles/per-user/root/guix-profile /root/.guix-profile
---
> ln -sf /var/guix/profiles/per-user/root/guix-profile \
> ~root/.guix-profile
268c269
< GUIX_PROFILE="/root/.guix-profile"
---
> GUIX_PROFILE="${HOME}/.guix-profile"
These changes allowed me to install guix via the script.
P. S.
I am really a newcomer to the guix community. And still not sure how everything works here. Sorry If my post's format is not appropriate.
--
Tatiana Sholokhova