Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.92 KB

README.md

File metadata and controls

76 lines (56 loc) · 1.92 KB

Build and populate cache Cachix Cache

Available packages

Channels

  • channel:nixos-unstable

Adding the NUR repository

# /etc/nixos/configuration.nix
{
    nixpkgs.config.packageOverrides = pkgs: {
        nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
            inherit pkgs;
        };
    };
}

Adding the NUR repository as a channel

sudo nix-channel --add https://github.com/nix-community/NUR/archive/master.tar.gz nur
sudo nix-channel --update
# /etc/nixos/configuration.nix
{
    nixpkgs.config.packageOverrides = pkgs: {
        nur = import <nur> {
            inherit pkgs;
        };
    };
}

Adding the binary cache

# /etc/nixos/configuration.nix
{
    nix = {
        binaryCaches = [ "https://ondt.cachix.org" ];
        binaryCachePublicKeys = [ "ondt.cachix.org-1:bfVL4zF1qPjwrhAITTRqE7ZHEjNrBkqrb28ffYatMJk=" ];
    };
}

Installing a package

# /etc/nixos/configuration.nix
{
    environment.systemPackages = with pkgs; [
        nur.repos.ondt.lemonade
    ];
}