unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Nix on Guix?
@ 2022-04-16  0:09 Benjamin Slade
  2022-04-16 18:20 ` phodina via
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Slade @ 2022-04-16  0:09 UTC (permalink / raw)
  To: help-guix

Hello Guix,

I'm trying to get the Nix package manager running on Guix. I followed the instructions at: <https://guix.gnu.org/manual/en/html_node/Miscellaneous-Services.html> and successfully installed it, but trying to install and/or run any Nix applications gives me permission errors.

I installed for the 'guix-system'; should I have installed for 'guix-user'? Or do I need to add my user to some Nix-related group? Or have I done something else wrong?

best,
 —Ben

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Nix on Guix?
  2022-04-16  0:09 Nix on Guix? Benjamin Slade
@ 2022-04-16 18:20 ` phodina via
  2022-04-16 19:49   ` Benjamin Slade
  2022-04-17 16:28   ` Nix on Guix? (and setting Guix $PATH) Benjamin Slade
  0 siblings, 2 replies; 5+ messages in thread
From: phodina via @ 2022-04-16 18:20 UTC (permalink / raw)
  To: beoram, help-guix

Hi,

Hello Guix,
I'm trying to get the Nix package manager running on Guix. I followed the instructions at: <https://guix.gnu.org/manual/en/html_node/Miscellaneous-Services.html> and successfully installed it, but trying to install and/or run any Nix applications gives me permission errors.
I installed for the 'guix-system'; should I have installed for 'guix-user'? Or do I need to add my user to some Nix-related group? Or have I done something else wrong?
best,
—Ben

I have nix-service running when I build my guix system and then I just run the following:

nix-channel --add https://nixos.org/channels/nixos-unstable
nix-channel --update

Petr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Nix on Guix?
  2022-04-16 18:20 ` phodina via
@ 2022-04-16 19:49   ` Benjamin Slade
  2022-04-17 16:28   ` Nix on Guix? (and setting Guix $PATH) Benjamin Slade
  1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Slade @ 2022-04-16 19:49 UTC (permalink / raw)
  To: phodina; +Cc: help-guix

Thanks, Petr. I did add and update channels. I wonder if it's something simple, like needing to restart the system after installing Nix? I'll try again.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Nix on Guix? (and setting Guix $PATH)
  2022-04-16 18:20 ` phodina via
  2022-04-16 19:49   ` Benjamin Slade
@ 2022-04-17 16:28   ` Benjamin Slade
  2022-04-30  8:53     ` zimoun
  1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Slade @ 2022-04-17 16:28 UTC (permalink / raw)
  To: phodina; +Cc: help-guix

Reinstalling Nix seemed to work for whatever reason and I don't seem to have the permissions errors this time trying to install or run Nix packages.

But I have to run `source /run/current-system/profile/etc/profile.d/nix.sh' from a terminal every time to get Nix packages in my PATH. Is there a better way of doing this? Setting the PATH somewhere or running `/run/current-system/profile/etc/profile.d/nix.sh' from .profile or something?


 —Ben

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Nix on Guix? (and setting Guix $PATH)
  2022-04-17 16:28   ` Nix on Guix? (and setting Guix $PATH) Benjamin Slade
@ 2022-04-30  8:53     ` zimoun
  0 siblings, 0 replies; 5+ messages in thread
From: zimoun @ 2022-04-30  8:53 UTC (permalink / raw)
  To: Benjamin Slade, phodina; +Cc: help-guix

Hi,

On Sun, 17 Apr 2022 at 10:28, Benjamin Slade <beoram@gmail.com> wrote:

> But I have to run `source
> /run/current-system/profile/etc/profile.d/nix.sh' from a terminal
> every time to get Nix packages in my PATH. Is there a better way of
> doing this? Setting the PATH somewhere or running
> `/run/current-system/profile/etc/profile.d/nix.sh' from .profile or
> something?

Yes, you can configure the ’source’ in your config files.  It depends on
what you want (login shell vs interactive shell, etc.), and as rough
rule of thumb, the source could be set in:

    /etc/profile
    ~/.profile
    ~/.bash_profile
    ~/.bashrc


Cheers,
simon


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-30  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16  0:09 Nix on Guix? Benjamin Slade
2022-04-16 18:20 ` phodina via
2022-04-16 19:49   ` Benjamin Slade
2022-04-17 16:28   ` Nix on Guix? (and setting Guix $PATH) Benjamin Slade
2022-04-30  8:53     ` zimoun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).