Skip to content

Recommend using nix-channel instead of an unpined version of master in README.md #252

Description

@kira-bruneau

I found that using NUR as nix channel is a much better alternative to fetching an unpinned version master. It provides greater controller over when the repo is updated and it's very easy to rollback if an update causes a problem.

I was thinking REAME.md could be updated along the lines of:


To make NUR accessible for your login user, first add a new user-specific channel:

nix-channel --add https://github.com/nix-community/NUR/archive/master.tar.gz nur
nix-channel --update

Or alternatively install a system-wide channel running nix-channel as root:

sudo nix-channel --add https://github.com/nix-community/NUR/archive/master.tar.gz nur
sudo nix-channel --update

and then include the channel in your packageOverrides in ~/.config/nixpkgs/config.nix:

{
  packageOverrides = pkgs: {
    nur = import <nur> {
      inherit pkgs;
    };
  };
}

For NixOS add a new system-wide channel (if it wasn't already added above):

sudo nix-channel --add https://github.com/nix-community/NUR/archive/master.tar.gz nur
sudo nix-channel --update

and then include the channel in your packageOverrides in /etc/nixos/configuration.nix

{
  nixpkgs.config.packageOverrides = pkgs: {
    nur = import <nur> {
      inherit pkgs;
    };
  };
}

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions