Changing system configuration from home?

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ

Hướng nghiên cứu

Start by loading the flake in a Nix REPL and compare the homeConfigurations and nixosConfigurations expressions described in the issue. Investigate how the home configuration is exposed through snowfallorg.users and determine a documented way for the system side to inspect it. Done means the cross-configuration access pattern is defined and demonstrated for the octelly home configuration.

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

Mô tả

First, I am aware that this can not be done directly and it's not what I'm asking for.


I would like a way of checking homeConfigurations from the nixosConfigurations side. The goal would be, to for example check if a user has a DE enabled, so that it can be added to system packages in the nixosConfiguration.

I haveoctelly.programs.mpv.enable = true; in homes/x86_64-linux/octelly@vmware-nixos (test option). I've done some probing and found that:

  • loading the flake in repl and checking nixosConfigurations.vmware-nixos.config.snowfallorg.users.octelly.home.config.octelly.programs.mpv.enable returns false
  • loading the flake in repl and checking homeConfigurations."octelly@vmware-nixos".options.octelly.programs.mpv.enable.value, however I'm not aware of a documented way of accessing self

I thought of writing per-user NixOS modules, so that a system could set options like target.graphics = true; and users could have their modules that would then for example snowfallorg.users.octelly.home.config.programs.plasma = true;, but that feels like a dirty fix.

Ngôn ngữ chính
Nix
Star
627
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.