My personal NUR repository
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
];
})
];
};
};
}
- Add your packages to the pkgs directory and to
default.nix
- Remember to mark the broken packages as
broken = true;
in themeta
attribute, or travis (and consequently caching) will fail! - Library functions, modules and overlays go in the respective directories
- Remember to mark the broken packages as
- Add yourself to NUR if you want to share your packages.