lol

Merge pull request #198336 from ck3d/doc-overrideStrategy

doc/rl-2211: add new option overrideStrategy

authored by

Florian Klink and committed by
GitHub
55c1fca0 7f9be6a5

+21
+17
nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
··· 908 908 </listitem> 909 909 <listitem> 910 910 <para> 911 + The option <literal>overrideStrategy</literal> was added to 912 + the different systemd unit options 913 + (<literal>systemd.services.&lt;name&gt;</literal>, 914 + <literal>systemd.sockets.&lt;name&gt;</literal>, …) to allow 915 + enforcing the creation of a dropin file, rather than the main 916 + unit file, by setting it to <literal>asDropin</literal>. This 917 + is useful in cases where the existence of the main unit file 918 + is not known to Nix at evaluation time, for example when the 919 + main unit file is provided by adding a package to 920 + <literal>systemd.packages</literal>. See the fix proposed in 921 + <link xlink:href="https://github.com/NixOS/nixpkgs/issues/135557#issuecomment-1295392470">NixOS’s 922 + systemd abstraction doesn’t work with systemd template 923 + units</link> for an example. 924 + </para> 925 + </listitem> 926 + <listitem> 927 + <para> 911 928 The <literal>polymc</literal> package has been removed due to 912 929 a rogue maintainer. It has been replaced by 913 930 <literal>prismlauncher</literal>, a fork by the rest of the
+4
nixos/doc/manual/release-notes/rl-2211.section.md
··· 281 281 282 282 - The `networking.wireguard` module now can set the mtu on interfaces and tag its packets with an fwmark. 283 283 284 + - 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`. 285 + 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`. 286 + 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. 287 + 284 288 - The `polymc` package has been removed due to a rogue maintainer. It has been 285 289 replaced by `prismlauncher`, a fork by the rest of the maintainers. For more 286 290 details, see [the pull request that made this