Artturin
8ad0103a34
config.structuredAttrsByDefault: add option
2022-12-08 06:13:19 +02:00
pennae
5f53dac66a
pkgs/top-level: convert to MD option docs
2022-10-03 14:00:32 +02:00
Profpatsch
1600cba863
Disable checkMeta by default again.
...
This caused too many downstream projects to break, so we are reverting
this change for now, until further transition fixes are in place.
See discussion in https://github.com/NixOS/nixpkgs/pull/191171
This reverts part of 6762de9a28
2022-10-02 14:28:40 +02:00
piegames
6762de9a28
check-meta.nix: type checking changes
...
- Enable metadata checking by default, see https://github.com/NixOS/nixpkgs/pull/25304#issuecomment-298385426
- Check metadata before any other package issues, see https://github.com/NixOS/nixpkgs/issues/191124#issuecomment-1246523976
- Document that type checks only apply to the top level of nested values.
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-09-25 16:37:15 +02:00
K900
ecb8cf9f68
pkgs/top-level: add a type for warnUndeclaredOptions
...
Fixes https://hydra.nixos.org/build/190091926/nixlog/1
2022-09-11 07:53:33 +00:00
Sergei Trofimovich
db09d70d33
config.configurePlatformsByDefault: init option
...
Useful to enable tree-wide occasionally to have incremental progress
towards https://github.com/NixOS/nixpkgs/pull/87909 resolution.
2022-06-21 09:23:13 +01:00
Zhaofeng Li
87de4db5e6
pkgs/config.nix: Fix missing attribute when no config keys are undeclared
2022-06-05 14:55:03 -07:00
Robert Hensing
1a7c0eac15
pkgs/config.nix: Fix infinite recursion when freeform config is strict in pkgs
...
https://github.com/NixOS/nixpkgs/issues/175196
The loop involved:
- pkgs is strict in the config.nix freeformType's produced attrNames,
as these are included in the config.
- the attrNames were strict in all the direct attrValues, because of
scanning for `mkIf`s.
`lazyAttrsOf` removes proper `mkIf` support, which we don't need here.
2022-05-29 10:25:39 +02:00
Robert Hensing
40b6089f21
Merge pull request #171014 from hercules-ci/nixpkgs-warn-undeclared-options
...
pkgs/top-level/config.nix: Add warnUndeclaredOptions
2022-05-25 08:37:15 +02:00
Robert Hensing
90344e9f40
Merge pull request #171163 from hercules-ci/nixpkgs-config-doc
...
Add generated `nixpkgs.config` doc to Nixpkgs manual
2022-05-19 20:51:38 +02:00
Artturin
a17e1b8809
config.enableParallelBuildingByDefault: init option
...
useful for testing if some builds could be faster
2022-05-11 16:41:30 +03:00
Robert Hensing
9020f1cf3e
nixpkgs.config: Also warn for unused defs if warnUndeclaredOptions
2022-05-10 07:01:00 +02:00
Robert Hensing
596b3663a5
pkgs/top-level/config.nix: Add warnUndeclaredOptions
2022-05-10 07:01:00 +02:00
ckie
3a34b6c820
stdenv/check-meta: add an eval warning option
...
This will be used in the next commit in this patch series.
2022-05-03 22:29:12 +03:00
Artturin
9f05fc6661
config.allowUnsupportedSystem: define as option
2022-05-02 20:39:43 +03:00
Artturin
9f473092f8
config.allowBroken: define as option
2022-05-02 17:20:44 +03:00
Artturin
1c49b81263
config.allowUnfree: define as option
2022-05-02 17:20:25 +03:00
Robert Hensing
e40d2099d2
doc: Add Nixpkgs config options reference
2022-05-02 10:21:05 +02:00
Artturin
33415135b0
config.contentAddressedByDefault: init option
2022-04-27 23:21:32 +03:00
Artturin
d76021402d
config.strictDepsByDefault: init option
...
so i won't have to change make-derivation.nix when i wan't to make this
true
2022-04-27 23:21:21 +03:00
Robert Hensing
200175a701
config.allowAliases: Define as option
...
This simplifies usages and makes the default value consistent.
In a few cases, the default value was interpreted to be `false`,
but this is useless, because virtually nobody will explicitly
set `allowAliases = true;`.
2022-04-01 11:33:10 +02:00
Robert Hensing
4acad300ac
Revert "pkgs.path: Avoid copying when used via flake"
...
This reverts commit 813f9da8ab
.
2022-01-27 12:53:30 +01:00
Robert Hensing
813f9da8ab
pkgs.path: Avoid copying when used via flake
2022-01-22 16:42:07 +01:00
volth
f3282c8d1e
treewide: remove unused variables ( #63177 )
...
* treewide: remove unused variables
* making ofborg happy
2019-06-16 19:59:05 +00:00
danbst
5aa813dcc9
pkgs/top-level: little doc fix for mkMassRebuild
2019-03-08 11:23:46 +02:00
Jan Malakhovski
4a647dd225
pkgs/top-level: check types of nixpkgs.config
...
This patch simply introduces a plain simple NixOS module and passes
`nixpkgs.config` through it via `evalModules` (with some temporary hackery to
passthru undefined options).
2019-03-08 11:19:38 +02:00