-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules/nix: use structural settings
(Nix RFC 42)
#270
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.conf
configuration 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.conf
configuration 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
checkAllError
andcheckConfig
options.