summaryrefslogtreecommitdiff
path: root/topics
diff options
context:
space:
mode:
authorArun Isaac2024-10-17 00:04:18 +0100
committerArun Isaac2024-10-17 00:05:46 +0100
commit746c59ac9bbc2beb7fd03e75e6eb8d28b1d107d1 (patch)
treecd7d082e10c55d021907f3fd087137168e320367 /topics
parent5acaa83f2e0e30b31c3f0511b95f0666343cb593 (diff)
downloadgn-gemtext-746c59ac9bbc2beb7fd03e75e6eb8d28b1d107d1.tar.gz
Add Guix for new HPC users guide.
Diffstat (limited to 'topics')
-rw-r--r--topics/octopus/set-up-guix-for-new-users.gmi34
1 files changed, 34 insertions, 0 deletions
diff --git a/topics/octopus/set-up-guix-for-new-users.gmi b/topics/octopus/set-up-guix-for-new-users.gmi
new file mode 100644
index 0000000..683a2da
--- /dev/null
+++ b/topics/octopus/set-up-guix-for-new-users.gmi
@@ -0,0 +1,34 @@
+# Set up Guix for new users
+
+This document describes how to set up Guix for new users on a machine in which Guix is already installed (such as octopus01).
+
+## Create a per-user profile for yourself by running your first guix pull
+
+"Borrow" some other user's guix to run guix pull. In the example below, we use root's guix, but it might as well be any guix.
+```
+$ /var/guix/profiles/per-user/root/current-guix/bin/guix pull
+```
+This should create your very own Guix profile at ~/.config/guix/current. You may invoke guix from this profile as
+```
+$ ~/.config/guix/current/bin/guix ...
+```
+But, you'd normally want to make this more convenient. So, add ~/.config/guix/current/bin to your PATH. To do this, add the following to your ~/.profile
+```
+GUIX_PROFILE=~/.config/guix/current
+. $GUIX_PROFILE/etc/profile
+```
+
+## Pulling from a different channels.scm
+
+By default, guix pull pulls the latest commit of the main upstream Guix channel. You may want to pull from additional channels as well. Put the channels you want into ~/.config/guix/channels.scm, and then run guix pull. For example, here's a channels.scm if you want to use the guix-bioinformatics channel.
+```
+$ cat ~/.config/guix/channels.scm
+(list (channel
+ (name 'gn-bioinformatics)
+ (url "https://git.genenetwork.org/guix-bioinformatics")
+ (branch "master")))
+```
+And,
+```
+$ guix pull
+```