mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
docs: add systemd type change to 19.03 release notes
This commit is contained in:
parent
13ad532412
commit
ba0375bf06
1 changed files with 26 additions and 0 deletions
|
@ -33,6 +33,32 @@ home.file."my file".source = ./. + "/file with spaces!";
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The type used for the systemd unit options under
|
||||||
|
<option>systemd.user.services</option>,
|
||||||
|
<option>systemd.user.sockets</option>, etc. has been changed to offer more
|
||||||
|
robust merging of configurations. If you don't override values within
|
||||||
|
systemd units then you are not affected by this change. Unfortunately, if
|
||||||
|
you do override unit values you may encounter errors.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
In particular, if you get an error saying that a <quote>unique
|
||||||
|
option</quote> is <quote>defined multiple times</quote> then you need to
|
||||||
|
use the
|
||||||
|
<code xlink:href="https://nixos.org/nixos/manual/#sec-option-definitions-setting-priorities">mkForce</code>
|
||||||
|
function. For example,
|
||||||
|
<programlisting language="nix">
|
||||||
|
systemd.user.services.foo.Service.ExecStart = "/foo/bar";
|
||||||
|
</programlisting>
|
||||||
|
becomes
|
||||||
|
<programlisting language="nix">
|
||||||
|
systemd.user.services.foo.Service.ExecStart = lib.mkForce "/foo/bar";
|
||||||
|
</programlisting>
|
||||||
|
We had to make this change because the old merging was causing too many
|
||||||
|
confusing situations for people.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue