KiaraGrouwstra / nix-config

my NixOS configuration
15 stars 1 forks source link

add Nix User Repository (NUR) #114

Closed KiaraGrouwstra closed 5 years ago

KiaraGrouwstra commented 5 years ago

readme:

{
  nixpkgs.config.packageOverrides = pkgs: {
    nur = import (builtins.fetchTarball {
      # Get the revision by choosing a version from https://github.com/nix-community/NUR/commits/master
      url = "https://github.com/nix-community/NUR/archive/3a6a6f4da737da41e27922ce2cfacf68a109ebce.tar.gz";
      # Get the hash by running `nix-prefetch-url --unpack <url>` on the above url
      sha256 = "04387gzgl8y555b3lkz9aiw9xsldfg4zmzp930m62qw8zbrvrshd";
}) {
      inherit pkgs;
    };
  };
}

usage:

$ nix-env -iA nur.repos.mic92.inxi

or

# configuration.nix
environment.systemPackages = with pkgs; [
  nur.repos.mic92.inxi
];

interesting repos:

KiaraGrouwstra commented 5 years ago

added NUR to config but can't rebuild due to #137 :neutral_face: