ondt / nur-packages

ondt's Nix User Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
    ];
}

About

ondt's Nix User Repository

License:MIT License


Languages

Language:Nix 100.0%