|
|
@ -499,18 +499,20 @@ archive content is independent of its creation time, thus making it |
|
|
|
reproducible. |
|
|
|
|
|
|
|
@item |
|
|
|
Make @code{root}'s profile available under @file{~root/.guix-profile}: |
|
|
|
Make the profile available under @file{~root/.config/guix/current}, which is |
|
|
|
where @command{guix pull} will install updates (@pxref{Invoking guix pull}): |
|
|
|
|
|
|
|
@example |
|
|
|
# ln -sf /var/guix/profiles/per-user/root/guix-profile \ |
|
|
|
~root/.guix-profile |
|
|
|
# mkdir -p ~root/.config/guix |
|
|
|
# ln -sf /var/guix/profiles/per-user/root/current-guix \ |
|
|
|
~root/.config/guix/current |
|
|
|
@end example |
|
|
|
|
|
|
|
Source @file{etc/profile} to augment @code{PATH} and other relevant |
|
|
|
environment variables: |
|
|
|
|
|
|
|
@example |
|
|
|
# GUIX_PROFILE="`echo ~root`/.guix-profile" ; \ |
|
|
|
# GUIX_PROFILE="`echo ~root`/.config/guix/current" ; \ |
|
|
|
source $GUIX_PROFILE/etc/profile |
|
|
|
@end example |
|
|
|
|
|
|
@ -532,8 +534,8 @@ with these commands: |
|
|
|
@c http://lists.gnu.org/archive/html/guix-devel/2017-01/msg01199.html |
|
|
|
|
|
|
|
@example |
|
|
|
# cp ~root/.guix-profile/lib/systemd/system/guix-daemon.service \ |
|
|
|
/etc/systemd/system/ |
|
|
|
# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \ |
|
|
|
/etc/systemd/system/ |
|
|
|
# systemctl start guix-daemon && systemctl enable guix-daemon |
|
|
|
@end example |
|
|
|
|
|
|
@ -541,14 +543,16 @@ If your host distro uses the Upstart init system: |
|
|
|
|
|
|
|
@example |
|
|
|
# initctl reload-configuration |
|
|
|
# cp ~root/.guix-profile/lib/upstart/system/guix-daemon.conf /etc/init/ |
|
|
|
# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \ |
|
|
|
/etc/init/ |
|
|
|
# start guix-daemon |
|
|
|
@end example |
|
|
|
|
|
|
|
Otherwise, you can still start the daemon manually with: |
|
|
|
|
|
|
|
@example |
|
|
|
# ~root/.guix-profile/bin/guix-daemon --build-users-group=guixbuild |
|
|
|
# ~root/.config/guix/current/bin/guix-daemon \ |
|
|
|
--build-users-group=guixbuild |
|
|
|
@end example |
|
|
|
|
|
|
|
@item |
|
|
@ -558,7 +562,7 @@ for instance with: |
|
|
|
@example |
|
|
|
# mkdir -p /usr/local/bin |
|
|
|
# cd /usr/local/bin |
|
|
|
# ln -s /var/guix/profiles/per-user/root/guix-profile/bin/guix |
|
|
|
# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix |
|
|
|
@end example |
|
|
|
|
|
|
|
It is also a good idea to make the Info version of this manual available |
|
|
@ -567,7 +571,7 @@ there: |
|
|
|
@example |
|
|
|
# mkdir -p /usr/local/share/info |
|
|
|
# cd /usr/local/share/info |
|
|
|
# for i in /var/guix/profiles/per-user/root/guix-profile/share/info/* ; |
|
|
|
# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ; |
|
|
|
do ln -s $i ; done |
|
|
|
@end example |
|
|
|
|
|
|
@ -582,7 +586,8 @@ To use substitutes from @code{hydra.gnu.org} or one of its mirrors |
|
|
|
(@pxref{Substitutes}), authorize them: |
|
|
|
|
|
|
|
@example |
|
|
|
# guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub |
|
|
|
# guix archive --authorize < \ |
|
|
|
~root/.config/guix/current/share/guix/hydra.gnu.org.pub |
|
|
|
@end example |
|
|
|
|
|
|
|
@item |
|
|
@ -616,7 +621,8 @@ make guix-binary.@var{system}.tar.xz |
|
|
|
... which, in turn, runs: |
|
|
|
|
|
|
|
@example |
|
|
|
guix pack -s @var{system} --localstatedir guix |
|
|
|
guix pack -s @var{system} --localstatedir \ |
|
|
|
--profile-name=current-guix guix |
|
|
|
@end example |
|
|
|
|
|
|
|
@xref{Invoking guix pack}, for more info on this handy tool. |
|
|
|