Hi Phong,

Thanks for the swift response.

That command does work for me as well, so thanks.

I added it as a package to my home config. Trying again I do get an
error, so maybe I didn't test it correctly the first time?

(define module (guix-home-config)
  ...
  #:use-module (gnu packages rust))

(define home-config
  (home-environment
    (packages
      (list
         ...
         rust
         rust:cargo))))

If I try with only 'rust', it succesfully configures. If I try with
'rust:cargo' with or without 'rust', it fails:

$ guix home reconfigure ~/guix-home-config.scm
/home/user/guix-home-config.scm:109:8: error: rust:cargo: unbound
variable
hint: Did you forget a `use-modules' form?

So how do I add it to the home config in a way that it works?

I tried quoting the variable in different ways, assuming the colon was
causing an issue, but that didn't work.

While fiddling with this issue I did manage to set up a Nix config and
install Cargo that way, but having it in Guix directly would be nicer.

Kind regards,
Nico

Reply via email to