3 phút đọc
nix-community/NUR: Nix User Repository: User contributed nix packages [maintainer=@Pandapip1] – Repository nix-community/NUR. Mô tả: Nix User Repository: User contributed nix packages [maintainer=@Pandapip1]. 1953 stars, 540 forks, ngôn ngữ chính Python, cập nhật 2026-09-21.
1. Repository làm gì?
Current maintainer: Pandapip1 Original creator: NUR was started by @Mic92 in 2018.
The Nix User Repository (NUR) is a community-driven meta repository for Nix packages. It provides access to user repositories that contain package descriptions (Nix expressions) and allows you to install packages by referencing them via attributes. In contrast to Nixpkgs, packages are built from source and are not reviewed by any Nixpkgs member.
The NUR was created to share new packages from the community in a faster and more decentralized way.
NUR automatically checks its list of repositories and performs evaluation checks before it propagates the updates.
Then, either the overlay (overlays.default) or legacyPackages. can be used.
First include NUR in your packageOverrides:
2. Dữ liệu và cấu trúc đáng chú ý
To make NUR accessible for your login user, add the following to ~/.config/nixpkgs/config.nix:
For NixOS add the following to your /etc/nixos/configuration.nix Notice: If you want to use NUR in nix-env, home-manager or in nix-shell you also need NUR in ~/.config/nixpkgs/config.nix as shown above!
Using builtins.fetchTarball without a sha256 will only cache the download for 1 hour by default, so you need internet access almost every time you build something. You can pin the version if you don't want that:
Then packages can be used or installed from the NUR namespace.
Each contributor can register their repository under a name and is responsible for its content.
NUR does not check the repository for malicious content on a regular basis and it is recommended to check expressions before installing them.
Using a single package in a devshell
3. Khả năng ứng dụng và giới hạn
This simple example demostrates how to add a single package from nur to a devshell defined in a flake.nix.
Using overlays and modules from NUR in your configuration is fairly straightforward.
Integrating with Home Manager can be done by adding your modules to the imports attribute. You can then configure your services like usual.
When using flakes, Home Manager modules can be accessed directly:
Using the flake in a standalone Home Manager configuration
The section above covers Home Manager used as a NixOS (or nix-darwin) module. If you instead build your Home Manager configuration standalone, with home-manager.lib.homeManagerConfiguration, add the NUR overlay and any repo modules you need to its modules list directly:
You can find all packages using Packages search for NUR or search our nur-combined repository, which contains all nix expressions from all users, via github.
How to add your own repository.
First, create a repository that contains a default.nix in its top-level directory. We also provide a repository template that contains a prepared directory structure.
Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.
Nguồn tham khảo: Xem bài gốc