rl-2311: Minor fixes

Rename the "Nixpkgs Library Changes" section to just "Nixpkgs Library",
matching the "NixOS" section.

Correct some formatting
This commit is contained in:
Silvan Mosberger 2023-11-29 18:18:50 +01:00
parent 790e3e3399
commit 5057a89f57

View File

@ -1313,7 +1313,7 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
qemu-vm module from overriding `fileSystems` by setting
`virtualisation.fileSystems = lib.mkForce { };`.
## Nixpkgs Library Changes {#sec-release-23.11-nixpkgs-lib}
## Nixpkgs Library {#sec-release-23.11-nixpkgs-lib}
### Breaking Changes {#sec-release-23.11-lib-breaking}
@ -1346,8 +1346,10 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
[GVariant Format
Strings](https://docs.gtk.org/glib/gvariant-format-strings.html) for details.
:::{.warning} This API is not considered fully stable and it might therefore
change in backwards incompatible ways without prior notice. :::
:::{.warning}
This API is not considered fully stable and it might therefore
change in backwards incompatible ways without prior notice.
:::
- [`lib.asserts`](https://nixos.org/manual/nixpkgs/unstable#sec-functions-library-asserts):
New function:
@ -1405,12 +1407,18 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
Module system:
- Options in the `options` module argument now have the `declarationPositions`
attribute containing the position where the option was declared: ``` $ nix
repl -f '<nixpkgs/nixos>' [...] nix-repl> :p
options.environment.systemPackages.declarationPositions [ { column = 7; file =
"/nix/store/vm9zf9wvfd628cchj0hdij1g4hzjrcz9-source/nixos/modules/config/system-path.nix";
line = 62; } ] ``` Not to be confused with `definitionsWithLocations`, which
is the same but for option _definitions_.
attribute containing the position where the option was declared:
```
$ nix-repl -f '<nixpkgs/nixos>' [...]
nix-repl> :p options.environment.systemPackages.declarationPositions
[ {
column = 7;
file = "/nix/store/vm9zf9wvfd628cchj0hdij1g4hzjrcz9-source/nixos/modules/config/system-path.nix";
line = 62;
} ]
```
Not to be confused with `definitionsWithLocations`, which is the same but for option _definitions_.
- Improved error message for option declarations missing `mkOption`
### Deprecations {#sec-release-23.11-lib-deprecations}