csh

Fix Path in GNU Guix on Foreign Distros

After installing GNU Guix on Trisquel and going through Application Setup, there will still be issues. Icons don't show up, and window managers won't list applications that were installed with Guix. ADFENO on the Trisquel forums showed me how to fix this.

Below is a genericized summary of his instructions.

  1. Go to your home folder and show hidden files with Control-h.
  2. In your home folder, find the file .profile and open it.
  3. Copy and paste the following text into .profile, if it isn't already there:
    source "${HOME}/.guix-profile/etc/profile"
    export GUIX_LOCPATH="${HOME}/.guix-profile/lib/locale"
    export GUIX_GTK3_PATH="${HOME}/.guix-profile/lib/gtk-3.0${GUIX_GTK3_PATH:+:}${GUIX_GTK3_PATH}"
    export PATH="${HOME}/.guix-profile/bin:${HOME}/.guix-profile/sbin${PATH:+:}${PATH}"
    export SSL_CERT_DIR="${HOME}/.guix-profile/etc/ssl/certs"
    export SSL_CERT_FILE="${HOME}/.guix-profile/ca-certificates.crt"
    export GIT_SSL_CAINFO="${SSL_CERT_FILE}"
    export GUILE_LOAD_PATH="${HOME}/.guix-profile/share/guile/site/2.2${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}"
    export GUILE_LOAD_COMPILED_PATH="${HOME}/.guix-profile/lib/guile/2.2/site-ccache:${GUIX_PROFILE}/share/guile/site/2.2${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
    export XDG_DATA_DIRS="${HOME}/.guix-profile/share:
  4. Show the contents of your desktop's path. In the terminal, type:
    echo $XDG_DATA_DIRS
  5. Copy the results.
  6. Paste the results into .profile in place of the .

Icons and program listings will now be visible after the next login.

Themes

Missing icons? Install the Adwaita icon set in Guix:

guix package --install adwaita-icon-theme

Do your buttons look bad, or are some missing? Unfortunately, you'll have to use a theme that's available in Guix. You can't use the Trisquel theme unless someone packages it. Therefore, you'll have to use Adwaita.

To switch everything to Adwaita, go to Applications → System Settings → Tweak Tool → Appearance and change everything to Adwaita or GNOME. In the end, it should look like this:

Screenshot: Proper settings in GNOME Tweak Tool

Once again, this may not take effect until you log in again.