modules/nix: use structural settings (Nix RFC 42)#270
modules/nix: use structural settings (Nix RFC 42)#270ShamrockLee wants to merge 1 commit intonix-community:masterfrom
settings (Nix RFC 42)#270Conversation
t184256
left a comment
There was a problem hiding this comment.
Thanks for the PR. I'd like to apologize, I have limited availability for the first half of July, and so far I could only give it a superficial review. I do remember about it and I will return to it in a while.
| assert isNixAtLeast "2.2"; | ||
| let | ||
|
|
||
| mkValueString = v: |
There was a problem hiding this comment.
Can we reuse the nixpkgs version here?
|
Seems to function fine, please address the comments from the previous review. |
|
Sorry, for late respond. I'm working on an oral presentation for a conference about Nix, and will not be responsive until August. |
|
Oh, sure, no rush, take your time (and consider sharing the talk =). |
|
Are you still interested in mainlining this? |
|
Oh! I almost forgot about this one. |
|
Since then, things like the Nix settings and Nix flake registries have been splitted from |
Port structural settings from nixos/nix-daemon. Adjust the description based on those from previous options and the Home Manager nix.settings option.
d947011 to
3db1fca
Compare
|
#329 demonstrates the possible strategy to reuse the upstream macro files. |
This patch ports the structural settings from nixos/nix-daemon (NixOS/nixpkgs#139075) and adjust the description based on those from previous options and the Home Manager nix.settings option (nix-community/home-manager#2718).
If applied, users could specify their
nix.confconfiguration in a structural way, using attribute names identical to the official documentation of Nix, and merge the corresponding attributes from different modules. We don't have to add or change any of the attributes manually whennix.confconfiguration options are added / changed upstream given that the configuration format is kept consistent.The specified configurations are automatically checked using the specified Nix package. The checks can be partially or fully opt out with the
checkAllErrorandcheckConfigoptions.