all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: Rodrigo Morales <rodrigo@morales.pe>, help-guix@gnu.org
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	[thread overview]
Message-ID: <87h6byu76g.fsf@wireframe> (raw)
In-Reply-To: <87a5hvd6r2.fsf@morales.pe>

[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2024-08-05 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-02  1:59 [question] How to use data that was previously downloaded using "guix pull" in a new system user? Rodrigo Morales
2024-08-05 18:59 ` Vagrant Cascadian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-02  1:27 Rodrigo Morales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6byu76g.fsf@wireframe \
    --to=vagrant@debian.org \
    --cc=help-guix@gnu.org \
    --cc=rodrigo@morales.pe \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.