Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Channel overlays while creating systems

Đang mở
#40 7 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Start with the lib.mkFlake argument block in the issue and compare the channel-specific behavior with flake/default.nix lines 173-176, where the default nixpkgs overlay works. Then inspect snowfall-lib.flake.without-snowfall-options to trace whether channels.nixpkgs-stable.overlaysBuilder is preserved; done means the partner system can access the package namespace from nixpkgs-stable without the missing-attribute error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Here's my case: I want to use nixpkgs-unstable channel on my main machine, but nixpkgs-stable on my partner's one due to stability reasons. Flake-utils-plus allows that and it's cool. However, I also want to access my own packages inside partner's configuration. The most straightforward way I thought of was like this (inside lib.mkFlake's argument):

      package-namespace = "my";
      channels.nixpkgs-stable.overlaysBuilder = lib.overlay.create-overlays-builder {
        inherit package-namespace;
      };
      systems.hosts.my-partner's-machine.channelName = "nixpkgs-stable";

However, while evaluating the configuration nix shouts:

error: attribute 'my' missing

It feels like the channels.nixpkgs-stable parameter is being completely ignored. That's quite strange, since the same block of code works for default nixpkgs:
https://github.com/snowfallorg/lib/blob/92803a029b5314d4436a8d9311d8707b71d9f0b6/snowfall-lib/flake/default.nix#L173-L176

And I don't see channels parameter removed in snowfall-lib.flake.without-snowfall-options or anywhere else... Strange!

Ngôn ngữ chính
Nix
Star
626
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của snowfallorg/lib

Tất cả issue của snowfallorg/lib

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.