-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Create config builder to handle default config values #43672
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conceptually I like this a lot.
|
GrahamcOfBorg
added
6.topic: stdenv
Standard environment
2.status: merge conflict
This PR has merge conflicts with the target branch
labels
Jul 17, 2018
@GrahamcOfBorg eval |
matthewbauer
force-pushed
the
config-builder
branch
from
July 18, 2018 19:56
bbf3f95
to
ded3cc3
Compare
GrahamcOfBorg
removed
the
2.status: merge conflict
This PR has merge conflicts with the target branch
label
Jul 18, 2018
matthewbauer
force-pushed
the
config-builder
branch
2 times, most recently
from
July 21, 2018 21:54
6e237d0
to
b6e6b0d
Compare
GrahamcOfBorg
added
6.topic: GNOME
GNOME desktop environment and its underlying platform
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: vim
6.topic: xfce
The Xfce Desktop Environment
8.has: module (update)
This PR changes an existing module in `nixos/`
labels
Jul 21, 2018
matthewbauer
force-pushed
the
config-builder
branch
3 times, most recently
from
July 22, 2018 02:19
e442579
to
7ac5390
Compare
pkgs/top-level/config.nix provides some defaults for the config values. This allows global defaults to be provided for config options & prevents individual packages for having to interpret the defaults. Hopefully this will make way for better documentation of configuration options. Eventually I want to move this into a proper module system, see (NixOS#39580). Other squashed commits: - check-meta: use default values from pkgs/top-level/config.nix We no longer have to check that these exist - their defaults are configured there. - config: propagate original config Lots of times we will have custom config options. We want these to still be accessible in Nixpkgs. - config: add packageOverrides One config option I originally missed. - config: fix licenses loop blacklistedLicenses & whitelistedLicense cannot depend on each other in their apply function. Instead just use the original config’. - treewide: remove ‘or’ default for configs these are now provided by config.nix - config: make types enforced config.shouldCheckMeta -> config.checkMeta This was the original name.
matthewbauer
force-pushed
the
config-builder
branch
from
August 6, 2018 15:00
d44eca6
to
bf8d302
Compare
!!! Great, ty! |
N.B. #16531 tried it before. I think my views might have softened since then :). |
Closing for now. If someone wants to take this up, feel free... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
6.topic: GNOME
GNOME desktop environment and its underlying platform
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: python
6.topic: stdenv
Standard environment
6.topic: vim
6.topic: xfce
The Xfce Desktop Environment
8.has: module (update)
This PR changes an existing module in `nixos/`
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
This is spun off from #39580. This just adds a config.nix file to handle common config values already in Nixpkgs. We can reuse the mkOption function from NixOS module system.