From 5057a89f572689f1b3a70bc8b909aa697aac738c Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 29 Nov 2023 18:18:50 +0100 Subject: rl-2311: Minor fixes Rename the "Nixpkgs Library Changes" section to just "Nixpkgs Library", matching the "NixOS" section. Correct some formatting --- nixos/doc/manual/release-notes/rl-2311.section.md | 26 +++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'nixos') diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index d2dece0be4d4..78e02c9d2446 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -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 '' [...] 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 '' [...] + 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} -- cgit 1.4.1