Trying out Guix for the first time! Waiting for packages to download.

I'm a long time Arch user. Any tips?!

I've heard there aren't as many packages for Guix as other distros, but I was thinking Flatpak and distrobox will help bridge the gap for me.

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (6 children)

Could you share how you do that? It didn't work last time I tried it (using Nix on top of Guix).

  • source
  • parent
  • hideshow 6 child comments
  • [–] 1 point 1 year ago (3 children)

    to install nix succesfully on my laptop I had to do the following steps:

    guix install nix

    nix-channel --list

    if nixpkgs is not in channel then add

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

    sudo nix-channel --update --verbose

    now change the group and ower of /nix

    cd /nix/

    sudo chown -R {your user name} ./var

    sudo chown -R {your user name} ./store

    sudo chgrp -R users ./var

    sudo chgrp -R users ./store

    now update the channels

    nix-channel --update --verbose

    ################################

    then install say firefox

    nix-env -iA nixpkgs.firefox

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    Thanks! I think I need to set up the service first in my config.scm, right?

  • source
  • parent
  • hideshow 2 child comments
  • I jpst googled it and got these steps (haven't tried them yet):

    To set up a Nix service in your Guix configuration, you need to enable the service in your configuration file, typically located at /etc/config.scm. You can refer to the Guix documentation for detailed instructions on how to properly configure and manage services.

    Step one: Open config file

    Step 2: Enable nix service

    (use-modules (gnu))
    
    (operating-system
      ...
      (services
       (cons* (service
                (nix-service)
                (nix-configuration
                 (nix-channel "https://nixos.org/channels/nixos-23.11"))
                )
              ...)))
    
    

    Save the file and reconfigure:

    sudo guix system reconfigure /etc/config.scm
    
    

    After reconfiguration, verify that the Nix service is running correctly by checking the service status:

    systemctl status nix-daemon
    
    

    Additional Notes:

    • Ensure you are using the latest stable version of Guix to avoid compatibility issues.

    • If you encounter any problems, consult the Guix documentation for troubleshooting tips.

    • The Nix service allows you to use Nix packages alongside Guix, providing flexibility in package management.

    Hope this helps!

  • source
  • parent