···4545 }).nixos.manual.x86_64-linux;
4646 };
47474848+ # The "legacy" in `legacyPackages` doesn't imply that the packages exposed
4949+ # through this attribute are "legacy" packages. Instead, `legacyPackages`
5050+ # is used here as a substitute attribute name for `packages`. The problem
5151+ # with `packages` is that it makes operations like `nix flake show
5252+ # nixpkgs` unusably slow due to the sheer number of packages the Nix CLI
5353+ # needs to evaluate. But when the Nix CLI sees a `legacyPackages`
5454+ # attribute it displays `omitted` instead of evaluating all packages,
5555+ # which keeps `nix flake show` on Nixpkgs reasonably fast, though less
5656+ # information rich.
4857 legacyPackages = forAllSystems (system: import ./. { inherit system; });
49585059 nixosModules = {
···908908 </listitem>
909909 <listitem>
910910 <para>
911911+ The option <literal>overrideStrategy</literal> was added to
912912+ the different systemd unit options
913913+ (<literal>systemd.services.<name></literal>,
914914+ <literal>systemd.sockets.<name></literal>, …) to allow
915915+ enforcing the creation of a dropin file, rather than the main
916916+ unit file, by setting it to <literal>asDropin</literal>. This
917917+ is useful in cases where the existence of the main unit file
918918+ is not known to Nix at evaluation time, for example when the
919919+ main unit file is provided by adding a package to
920920+ <literal>systemd.packages</literal>. See the fix proposed in
921921+ <link xlink:href="https://github.com/NixOS/nixpkgs/issues/135557#issuecomment-1295392470">NixOS’s
922922+ systemd abstraction doesn’t work with systemd template
923923+ units</link> for an example.
924924+ </para>
925925+ </listitem>
926926+ <listitem>
927927+ <para>
911928 The <literal>polymc</literal> package has been removed due to
912929 a rogue maintainer. It has been replaced by
913930 <literal>prismlauncher</literal>, a fork by the rest of the
+4
nixos/doc/manual/release-notes/rl-2211.section.md
···281281282282- The `networking.wireguard` module now can set the mtu on interfaces and tag its packets with an fwmark.
283283284284+- The option `overrideStrategy` was added to the different systemd unit options (`systemd.services.<name>`, `systemd.sockets.<name>`, …) to allow enforcing the creation of a dropin file, rather than the main unit file, by setting it to `asDropin`.
285285+ This is useful in cases where the existence of the main unit file is not known to Nix at evaluation time, for example when the main unit file is provided by adding a package to `systemd.packages`.
286286+ See the fix proposed in [NixOS's systemd abstraction doesn't work with systemd template units](https://github.com/NixOS/nixpkgs/issues/135557#issuecomment-1295392470) for an example.
287287+284288- The `polymc` package has been removed due to a rogue maintainer. It has been
285289 replaced by `prismlauncher`, a fork by the rest of the maintainers. For more
286290 details, see [the pull request that made this