[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [question] How to use data that was previously downloaded using "gui
From: |
Vagrant Cascadian |
Subject: |
Re: [question] How to use data that was previously downloaded using "guix pull" in a new system user? |
Date: |
Mon, 05 Aug 2024 11:59:51 -0700 |
On 2024-08-01, Rodrigo Morales wrote:
> I'm running guix in Ubuntu 22.04.4 LTS on my desktop computer.
>
> On my desktop computer, I like running experiments just to see what
> happens. When I want to run an experiment related to the default
> behavior of a tool, I create a new system user (using the command =sudo
> useradd --create-home experiment-1=) and execute whatever command I want
> to experiment with, this way I make sure that none of my dotfiles change
> the default behavior of the tool. On my desktop computer, =rodrigo= is
> the user that has all my dotfiles, and the users that I use for running
> experiments are called =experiment-1=, =experiment-2=, =experiment-3=
> and so on.
>
> I want to run some experiments that involve using the =guix= command.
...
> My question is: In a newly created system user, how to make the =guix=
> command be aware of data that has been previously downloaded through
> =guix pull=?
Calling the binary from the other user profile directly should work:
/var/guix/profiles/per-user/rodrigo/current-guix/bin/guix build SOMEPACKAGE
Or alternately looking at the store item that that user's profile points
to and using it even more directly:
ls -l /var/guix/profiles/per-user/rodrigo/current-guix
/gnu/store/.../bin/guix build SOMEPACKAGE
You might be able to manually register that same store item as your
user's "current-guix" profile too by symlinking the correct
things... though I am less sure of how to do that correctly off the top
of my head.
live well,
vagrant
signature.asc
Description: PGP signature