nix-community/NUR: Nix User Repository: User contributed nix packages [maintainer=@Pandapip1]

4 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]. 1981 stars, 559 forks, ngôn ngữ chính Python, cập nhật 2026-10-28.

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!

Add NUR as a channel named nur, so resolves. The revision moves only on nix-channel –update, and nix-channel –rollback restores the previous revision.

nix-channel –rollback restores the previous revision of that user channel. Add the following to ~/.config/nixpkgs/config.nix:

For NixOS, a root channel is what nixos-rebuild sees:

sudo nix-channel –rollback restores the previous revision of the root channel. Add the following to /etc/nixos/configuration.nix:

nix-env, nix-shell, and Home Manager for the login user still need the user channel plus ~/.config/nixpkgs/config.nix.

3. Khả năng ứng dụng và giới hạn

Flake configs keep using the flake section (### Using flakes) and flake.lock. For a non-flake config, prefer this channel over the unpinned fetchTarball when NixOS and Home Manager should advance together on an explicit nix-channel –update, without editing a pin in two repositories. The unpinned tarball follows Nix's tarball TTL (the download cache is about one hour; see ### Pinning). When the revision must be reviewable in git, or teammates cannot share one channel, use ### Pinning or a pinning tool such as niv. repoOverrides from the Overriding repositories section is the same argument on import .

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

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.

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

📅 Âm: 4/10 · Canh Dần

📅 Lịch Âm Dương NsN

×
Hôm Nay · Thứ Năm
Âm Lịch: 4 Tháng 10
Năm Bính Ngọ
📌 Can Chi: Canh Dần
✨ Hoàng Đạo: Tý (23-1), Sửu (1-3), Thìn (7-9), Tỵ (9-11), Mùi (13-15), Tuất (19-21)
Vĩnh Phúc (Liên Bảo - Vĩnh Yên)
31°C
Nắng Đẹp
💧 83% | 💨 18 km/h
Hôm nay 32°
02/11 28°
03/11 30°
04/11 31°
05/11 31°