Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Created May 5, 2021 11:59
Show Gist options
  • Save sogaiu/40b063ffc6ab8135bb247e019cb5ca50 to your computer and use it in GitHub Desktop.
Save sogaiu/40b063ffc6ab8135bb247e019cb5ca50 to your computer and use it in GitHub Desktop.
guix setup notes
# instructions based on system crafters
# inside an ubuntu system (or any systemd-based system?)
cd /tmp
wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
chmod +x guix-install.sh
sudo ./guix-install.sh
wget "https://sv.gnu.org/people/viewgpg.php?user_id=127547" -qO - | sudo -i gpg --import -
wget "https://sv.gnu.org/people/viewgpg.php?user_id=15145" -qO - | sudo -i gpg --import -
sudo ./guix-install.sh
info guix
guix install emacs
# edit ~/.profile to contain
GUIX_PROFILE="/home/user/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
guix pull
# unlike in the video, there was no output about more additions to .profile
# again
guix pull
# what has changed
guix pull --news
guix upgrade
# coping with locales-related warnings (one-time)
sudo guix install glibc-locales
# edit root's .profile to contain GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
sudo vi /root/.profile
# update root user's guix profile periodically
sudo -i guix pull
sudo -i guix pull --news
sudo systemctl restart guix-daemon.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment