Skip to content

Nirlvy/nur-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nirlvy's Nix User Repository

My personal NUR repository

Build and populate cache

Cachix Cache

How to use

NOTE: To follow the following usage, you need to have Nix installed with flakes & new-commands enabled first.

Run packages directly from this repository(no cache):

nix run github:nirlvy/nur-packages#some-package

Use this repository in flake.nix:

# flake.nix
{
  # the nixConfig here only affects the flake itself, not the system configuration!
  # for more information, see:
  #     https://nixos-and-flakes.thiscute.world/nixos-with-flakes/add-custom-cache-servers
  nixConfig = {
    # substituers will be appended to the default substituters when fetching packages
    extra-substituters = [ "https://nirlvy.cachix.org" ];
    extra-trusted-public-keys = [ "nirlvy.cachix.org-1:dOdsWPG0r4JuqWy+p150yPiVrC28tELUZUdkXobrKZM=" ];
  };

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nur-nirlvy = {
      url = "github:nirlvy/nur-packages";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, nur-nirlvy, ... }@inputs: {
    nixosConfigurations.default = nixpkgs.lib.nixosSystem rec {
      system = "x86_64-linux";
      modules = [
        ({ pkgs, ... }: {
          environment.systemPackages = with pkgs; [
            # Add packages from this repo
            nur-nirlvy.packages.${system}.some-package
          ];
        })
      ];
    };
  };
}

Notes for myself

  1. Add your packages to the pkgs directory and to default.nix
    • Remember to mark the broken packages as broken = true; in the meta attribute, or travis (and consequently caching) will fail!
    • Library functions, modules and overlays go in the respective directories
  2. Add yourself to NUR if you want to share your packages.

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages