Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

41 lines (36 loc) · 1.38 KB

nix-index-db

Daily updated, multi-channel, multi-platform prebuilt nix-index indices.

Flavors

Channels All platform indices Host platform only
master releases/master standalone/master
nixpkgs-unstable releases/nixpkgs-unstable standalone/nixpkgs-unstable

Oneshot Install

This installs the index to ~/.cache/nix-index/files.

nix run github:usertam/nix-index-db/standalone/master

Flakes Install

To install nixpkgs-unstable standalone using flakes in home-manager:

{
  inputs = {
    nix-index-db.url = "github:usertam/nix-index-db/standalone/nixpkgs-unstable";
    nix-index-db.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = inputs: {
    homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
      extraSpecialArgs = { inherit inputs; };
      modules = [
        ({ pkgs, inputs, ... }: {
          home.file.".cache/nix-index/files" = {
            source = inputs.nix-index-db.packages.${pkgs.system}.default;
          };
        })
      ];
    };
  };
}