2019-02-25 23:14:41 +01:00
<section xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-release-19.09">
<title > Release 19.09 (“Loris”, 2019/09/??)</title>
<section xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-release-19.09-highlights">
<title > Highlights</title>
<para >
In addition to numerous new and upgraded packages, this release has the
following highlights:
</para>
<itemizedlist >
<listitem >
2019-05-19 11:22:10 +02:00
<para >
End of support is planned for end of April 2020, handing over to 20.03.
</para>
2019-02-25 23:14:41 +01:00
</listitem>
2019-06-09 11:14:43 +02:00
<listitem >
<para >
PHP now defaults to PHP 7.3, updated from 7.2.
</para>
</listitem>
2019-06-09 18:52:03 +02:00
<listitem >
<para >
PHP 7.1 is no longer supported due to upstream not supporting this version for the entire lifecycle of the 19.09 release.
</para>
</listitem>
2019-07-17 23:09:20 +02:00
<listitem >
<para >
The binfmt module is now easier to use. Additional systems can
be added through <option > boot.binfmt.emulatedSystems</option> .
For instance, <literal > boot.binfmt.emulatedSystems = [
"wasm32-wasi" "x86_64-windows" "aarch64-linux" ];</literal> will
set up binfmt interpreters for each of those listed systems.
</para>
</listitem>
2019-08-08 05:34:41 +02:00
<listitem >
<para >
The installer now uses a less privileged <literal > nixos</literal> user whereas before we logged in as root.
To gain root privileges use <literal > sudo -i</literal> without a password.
</para>
</listitem>
2019-02-25 23:14:41 +01:00
</itemizedlist>
</section>
<section xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-release-19.09-new-services">
<title > New Services</title>
<para >
The following new services were added since the last release:
</para>
2018-12-01 17:32:21 +01:00
<itemizedlist >
<listitem >
<para >
<literal > ./programs/dwm-status.nix</literal>
</para>
</listitem>
</itemizedlist>
2019-04-08 19:39:22 +02:00
</section>
<section xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-release-19.09-incompatibilities">
<title > Backward Incompatibilities</title>
<para >
When upgrading from a previous release, please be aware of the following
incompatible changes:
</para>
<itemizedlist >
2019-04-09 17:18:43 +02:00
<listitem >
<para >
Buildbot no longer supports Python 2, as support was dropped upstream in
version 2.0.0. Configurations may need to be modified to make them
compatible with Python 3.
</para>
</listitem>
<listitem >
<para >
PostgreSQL now uses
<filename class= "directory" > /run/postgresql</filename> as its socket
directory instead of <filename class= "directory" > /tmp</filename> . So
if you run an application like eg. Nextcloud, where you need to use
the Unix socket path as the database host name, you need to change it
accordingly.
</para>
</listitem>
2019-03-16 03:03:21 +01:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The options <option > services.prometheus.alertmanager.user</option> and
<option > services.prometheus.alertmanager.group</option> have been removed
because the alertmanager service is now using systemd's <link
xlink:href="http://0pointer.net/blog/dynamic-users-with-systemd.html">
DynamicUser mechanism</link> which obviates these options.
2019-03-16 03:03:21 +01:00
</para>
</listitem>
2019-03-20 03:06:39 +01:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The NetworkManager systemd unit was renamed back from network-manager.service to
NetworkManager.service for better compatibility with other applications expecting this name.
The same applies to ModemManager where modem-manager.service is now called ModemManager.service again.
2019-03-20 03:06:39 +01:00
</para>
</listitem>
2019-04-22 14:06:33 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The <option > services.nzbget.configFile</option> and <option > services.nzbget.openFirewall</option>
options were removed as they are managed internally by the nzbget. The
<option > services.nzbget.dataDir</option> option hadn't actually been used by
the module for some time and so was removed as cleanup.
2019-04-22 14:06:33 +02:00
</para>
</listitem>
2019-05-17 14:12:52 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The <option > services.mysql.pidDir</option> option was removed, as it was only used by the wordpress
apache-httpd service to wait for mysql to have started up.
This can be accomplished by either describing a dependency on mysql.service (preferred)
or waiting for the (hardcoded) <filename > /run/mysqld/mysql.sock</filename> file to appear.
2019-05-17 14:12:52 +02:00
</para>
</listitem>
2019-05-01 13:19:30 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The <option > services.emby.enable</option> module has been removed, see
<option > services.jellyfin.enable</option> instead for a free software fork of Emby.
2019-05-01 13:19:30 +02:00
2019-06-28 00:50:27 +02:00
See the Jellyfin documentation:
<link xlink:href= "https://jellyfin.readthedocs.io/en/latest/administrator-docs/migrate-from-emby/" >
Migrating from Emby to Jellyfin
</link>
2019-05-01 13:19:30 +02:00
</para>
</listitem>
2019-05-20 20:32:58 +02:00
<listitem >
<para >
IPv6 Privacy Extensions are now enabled by default for undeclared
interfaces. The previous behaviour was quite misleading — even though
the default value for
<option > networking.interfaces.*.preferTempAddress</option> was
<literal > true</literal> , undeclared interfaces would not prefer temporary
addresses. Now, interfaces not mentioned in the config will prefer
temporary addresses. EUI64 addresses can still be set as preferred by
explicitly setting the option to <literal > false</literal> for the
interface in question.
</para>
</listitem>
2019-03-06 13:41:18 +01:00
<listitem >
2019-06-03 08:40:37 +02:00
<para >
Since Bittorrent Sync was superseded by Resilio Sync in 2016, the
<literal > bittorrentSync</literal> , <literal > bittorrentSync14</literal> ,
and <literal > bittorrentSync16</literal> packages have been removed in
favor of <literal > resilio-sync</literal> .
</para>
<para >
The corresponding module, <option > services.btsync</option> has been
replaced by the <option > services.resilio</option> module.
</para>
</listitem>
2019-05-11 13:48:48 +02:00
<listitem >
<para >
2019-07-02 17:53:45 +02:00
The httpd service no longer attempts to start the postgresql service. If you have come to depend
on this behaviour then you can preserve the behavior with the following configuration:
<literal > systemd.services.httpd.after = [ "postgresql.service" ];</literal>
</para>
2019-05-11 13:48:48 +02:00
<para >
2019-07-01 22:10:14 +02:00
The option <option > services.httpd.extraSubservices</option> has been
marked as deprecated. You may still use this feature, but it will be
removed in a future release of NixOS. You are encouraged to convert any
httpd subservices you may have written to a full NixOS module.
</para>
<para >
Most of the httpd subservices packaged with NixOS have been replaced with
full NixOS modules including LimeSurvey, WordPress, and Zabbix. These
modules can be enabled using the <option > services.limesurvey.enable</option> ,
2019-07-24 04:03:20 +02:00
<option > services.mediawiki.enable</option> , <option > services.wordpress.enable</option> ,
and <option > services.zabbixWeb.enable</option> options.
2019-03-06 13:41:18 +01:00
</para>
</listitem>
2019-06-03 22:33:52 +02:00
<listitem >
2019-06-28 00:50:27 +02:00
<para >
The option <option > systemd.network.networks.< name> .routes.*.routeConfig.GatewayOnlink</option>
was renamed to <option > systemd.network.networks.< name> .routes.*.routeConfig.GatewayOnLink</option>
(capital <literal > L</literal> ). This follows
<link xlink:href= "https://github.com/systemd/systemd/commit/9cb8c5593443d24c19e40bfd4fc06d672f8c554c" >
upstreams renaming
</link> of the setting.
</para>
2019-05-11 13:48:48 +02:00
</listitem>
2019-05-28 18:33:28 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
As of this release the NixOps feature <literal > autoLuks</literal> is deprecated. It no longer works
with our systemd version without manual intervention.
2019-05-28 18:33:28 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
Whenever the usage of the module is detected the evaluation will fail with a message
explaining why and how to deal with the situation.
2019-05-28 18:33:28 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
A new knob named <literal > nixops.enableDeprecatedAutoLuks</literal>
has been introduced to disable the eval failure and to acknowledge the notice was received and read.
If you plan on using the feature please note that it might break with subsequent updates.
2019-05-28 18:33:28 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
Make sure you set the <literal > _netdev</literal> option for each of the file systems referring to block
devices provided by the autoLuks module. Not doing this might render the system in a
state where it doesn't boot anymore.
2019-05-28 18:33:28 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
If you are actively using the <literal > autoLuks</literal> module please let us know in
<link xlink:href= "https://github.com/NixOS/nixpkgs/issues/62211" > issue #62211</link> .
2019-05-28 18:33:28 +02:00
</para>
2019-06-28 00:50:27 +02:00
</listitem>
<listitem >
2019-06-08 19:36:24 +02:00
<para >
2019-06-28 00:50:27 +02:00
The setopt declarations will be evaluated at the end of <literal > /etc/zshrc</literal> , so any code in <xref linkend= "opt-programs.zsh.interactiveShellInit" /> ,
<xref linkend= "opt-programs.zsh.loginShellInit" /> and <xref linkend= "opt-programs.zsh.promptInit" /> may break if it relies on those options being set.
2019-06-08 19:36:24 +02:00
</para>
</listitem>
2019-07-22 16:32:48 +02:00
<listitem >
<para >
The <literal > prometheus-nginx-exporter</literal> package now uses the offical exporter provided by NGINX Inc.
Its metrics are differently structured and are incompatible to the old ones. For information about the metrics,
have a look at the <link xlink:href= "https://github.com/nginxinc/nginx-prometheus-exporter" > official repo</link> .
</para>
</listitem>
2019-07-30 00:06:12 +02:00
<listitem >
<para >
The <literal > shibboleth-sp</literal> package has been updated to version 3.
It is largely backward compatible, for further information refer to the
<link xlink:href= "https://wiki.shibboleth.net/confluence/display/SP3/ReleaseNotes" > release notes</link>
and <link xlink:href= "https://wiki.shibboleth.net/confluence/display/SP3/UpgradingFromV2" > upgrade guide</link> .
</para>
2019-07-05 12:03:28 +02:00
<para >
Nodejs 8 is scheduled EOL under the lifetime of 19.09 and has been dropped.
</para>
2019-07-30 00:06:12 +02:00
</listitem>
2019-08-02 16:23:08 +02:00
<listitem >
<para >
By default, prometheus exporters are now run with <literal > DynamicUser</literal> enabled.
Exporters that need a real user, now run under a seperate user and group which follow the pattern <literal > < exporter-name> -exporter</literal> , instead of the previous default <literal > nobody</literal> and <literal > nogroup</literal> .
Only some exporters are affected by the latter, namely the exporters <literal > dovecot</literal> , <literal > node</literal> , <literal > postfix</literal> and <literal > varnish</literal> .
</para>
</listitem>
2019-08-10 19:33:17 +02:00
<listitem >
<para >
The <literal > ibus-qt</literal> package is not installed by default anymore when <xref linkend= "opt-i18n.inputMethod.enabled" /> is set to <literal > ibus</literal> .
If IBus support in Qt 4.x applications is required, add the <literal > ibus-qt</literal> package to your <xref linkend= "opt-environment.systemPackages" /> manually.
</para>
</listitem>
2019-07-18 23:50:22 +02:00
<listitem >
<para >
The CUPS Printing service now uses socket-based activation by
default, only starting when needed. The previous behavior can
be restored by setting
<option > services.cups.startWhenNeeded</option> to
<literal > false</literal> .
</para>
</listitem>
2019-08-11 17:14:03 +02:00
<listitem >
<para >
The <option > services.systemhealth</option> module has been removed from nixpkgs due to lack of maintainer.
2019-08-13 00:02:22 +02:00
</para>
</listitem>
<listitem >
<para >
The <option > services.mantisbt</option> module has been removed from nixpkgs due to lack of maintainer.
2019-08-11 17:14:03 +02:00
</para>
</listitem>
2019-08-22 00:39:52 +02:00
<listitem >
<para >
Squid 3 has been removed and the <option > squid</option> derivation now refers to Squid 4.
</para>
</listitem>
2019-03-20 03:06:39 +01:00
</itemizedlist>
</section>
2019-02-25 23:14:41 +01:00
<section xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-release-19.09-notable-changes">
<title > Other Notable Changes</title>
<itemizedlist >
<listitem >
2018-09-23 21:34:36 +02:00
<para >
The <option > documentation</option> module gained an option named
2019-03-22 14:44:11 +01:00
<option > documentation.nixos.includeAllModules</option> which makes the
generated <citerefentry >
<refentrytitle > configuration.nix</refentrytitle>
<manvolnum > 5</manvolnum> </citerefentry> manual page include all options
from all NixOS modules included in a given
<literal > configuration.nix</literal> configuration file. Currently, it is
set to <literal > false</literal> by default as enabling it frequently
prevents evaluation. But the plan is to eventually have it set to
<literal > true</literal> by default. Please set it to
<literal > true</literal> now in your <literal > configuration.nix</literal>
and fix all the bugs it uncovers.
2018-09-23 21:34:36 +02:00
</para>
2019-02-25 23:14:41 +01:00
</listitem>
2019-03-30 17:41:09 +01:00
<listitem >
<para >
The <literal > vlc</literal> package gained support for Chromecast
streaming, enabled by default. TCP port 8010 must be open for it to work,
so something like <literal > networking.firewall.allowedTCPPorts = [ 8010
];</literal> may be required in your configuration. Also consider enabling
<link xlink:href= "https://nixos.wiki/wiki/Accelerated_Video_Playback" >
Accelerated Video Playback</link> for better transcoding performance.
</para>
</listitem>
2019-03-28 15:47:41 +01:00
<listitem >
<para >
The following changes apply if the <literal > stateVersion</literal> is
changed to 19.09 or higher. For <literal > stateVersion = "19.03"</literal>
or lower the old behavior is preserved.
</para>
<itemizedlist >
<listitem >
<para >
<literal > solr.package</literal> defaults to
<literal > pkgs.solr_8</literal> .
</para>
</listitem>
</itemizedlist>
</listitem>
2018-09-21 21:28:45 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The <literal > hunspellDicts.fr-any</literal> dictionary now ships with <literal > fr_FR.{aff,dic}</literal>
which is linked to <literal > fr-toutesvariantes.{aff,dic}</literal> .
2018-09-21 21:28:45 +02:00
</para>
2019-06-28 00:50:27 +02:00
</listitem>
<listitem >
2019-05-17 00:13:29 +02:00
<para >
2019-06-28 00:50:27 +02:00
The <literal > mysql</literal> service now runs as <literal > mysql</literal>
user. Previously, systemd did execute it as root, and mysql dropped privileges
itself.
This includes <literal > ExecStartPre=</literal> and
<literal > ExecStartPost=</literal> phases.
To accomplish that, runtime and data directory setup was delegated to
RuntimeDirectory and tmpfiles.
2019-05-17 00:13:29 +02:00
</para>
2018-09-21 21:28:45 +02:00
</listitem>
2019-05-15 11:05:37 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
With the upgrade to systemd version 242 the <literal > systemd-timesyncd</literal>
service is no longer using <literal > DynamicUser=yes</literal> . In order for the
upgrade to work we rely on an activation script to move the state from the old
to the new directory. The older directory (prior <literal > 19.09</literal> ) was
<literal > /var/lib/private/systemd/timesync</literal> .
2019-05-15 11:05:37 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
As long as the <literal > system.config.stateVersion</literal> is below
<literal > 19.09</literal> the state folder will migrated to its proper location
(<literal > /var/lib/systemd/timesync</literal> ), if required.
2019-05-15 11:05:37 +02:00
</para>
2019-06-28 00:50:27 +02:00
</listitem>
<listitem >
2019-05-23 00:33:44 +02:00
<para >
The package <literal > avahi</literal> is now built to look up service
definitions from <literal > /etc/avahi/services</literal> instead of its
output directory in the nix store. Accordingly the module
<option > avahi</option> now supports custom service definitions via
<option > services.avahi.extraServiceFiles</option> , which are then placed
in the aforementioned directory. See <citerefentry >
<refentrytitle > avahi.service</refentrytitle> <manvolnum > 5</manvolnum>
</citerefentry> for more information on custom service definitions.
2019-06-28 00:50:27 +02:00
</para>
</listitem>
<listitem >
<para >
Since version 0.1.19, <literal > cargo-vendor</literal> honors package
includes that are specified in the <filename > Cargo.toml</filename>
file of Rust crates. <literal > rustPlatform.buildRustPackage</literal> uses
<literal > cargo-vendor</literal> to collect and build dependent crates.
Since this change in <literal > cargo-vendor</literal> changes the set of
vendored files for most Rust packages, the hash that use used to verify
the dependencies, <literal > cargoSha256</literal> , also changes.
2019-06-10 08:42:19 +02:00
</para>
<para >
2019-06-28 00:50:27 +02:00
The <literal > cargoSha256</literal> hashes of all in-tree derivations that
use <literal > buildRustPackage</literal> have been updated to reflect this
change. However, third-party derivations that use
<literal > buildRustPackage</literal> may have to be updated as well.
2019-06-10 08:42:19 +02:00
</para>
</listitem>
2019-06-30 17:08:08 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The <literal > consul</literal> package was upgraded past version <literal > 1.5</literal> ,
so its deprecated legacy UI is no longer available.
2019-06-30 17:08:08 +02:00
</para>
</listitem>
2019-06-07 00:50:33 +02:00
<listitem >
<para >
2019-06-28 00:50:27 +02:00
The default resample-method for PulseAudio has been changed from the upstream default <literal > speex-float-1</literal>
to <literal > speex-float-5</literal> . Be aware that low-powered ARM-based and MIPS-based boards will struggle with this
so you'll need to set <option > hardware.pulseaudio.daemon.config.resample-method</option> back to <literal > speex-float-1</literal> .
2019-05-23 00:33:44 +02:00
</para>
</listitem>
2019-06-15 13:02:11 +02:00
<listitem >
<para >
The <literal > phabricator</literal> package and associated <literal > httpd.extraSubservice</literal> , as well as the
<literal > phd</literal> service have been removed from nixpkgs due to lack of maintainer.
</para>
</listitem>
2019-07-01 21:19:15 +02:00
<listitem >
<para >
The <literal > mercurial</literal> <literal > httpd.extraSubservice</literal> has been removed from nixpkgs due to lack of maintainer.
</para>
</listitem>
2019-06-30 18:59:01 +02:00
<listitem >
<para >
The <literal > trac</literal> <literal > httpd.extraSubservice</literal> has been removed from nixpkgs because it was unmaintained.
</para>
</listitem>
2019-07-12 01:46:06 +02:00
<listitem >
<para >
The <literal > foswiki</literal> package and associated <literal > httpd.extraSubservice</literal> have been removed
from nixpkgs due to lack of maintainer.
</para>
</listitem>
2019-07-01 21:32:46 +02:00
<listitem >
<para >
The <literal > tomcat-connector</literal> <literal > httpd.extraSubservice</literal> has been removed from nixpkgs.
</para>
</listitem>
2019-06-28 17:54:11 +02:00
<listitem >
<para >
It's now possible to change configuration in
<link linkend= "opt-services.nextcloud.enable" > services.nextcloud</link> after the initial deploy
since all config parameters are persisted in an additional config file generated by the module.
Previously core configuration like database parameters were set using their imperative
installer after creating <literal > /var/lib/nextcloud</literal> .
</para>
</listitem>
2019-08-05 13:34:51 +02:00
<listitem >
<para >
There exists now <literal > lib.forEach</literal> , which is like <literal > map</literal> , but with
arguments flipped. When mapping function body spans many lines (or has nested
<literal > map</literal> s), it is often hard to follow which list is modified.
</para>
<para >
Previous solution to this problem was either to use <literal > lib.flip map</literal>
idiom or extract that anonymous mapping function to a named one. Both can still be used
but <literal > lib.forEach</literal> is preferred over <literal > lib.flip map</literal> .
</para>
2019-08-11 15:38:20 +02:00
<para >
The <literal > /etc/sysctl.d/nixos.conf</literal> file containing all the options set via
<link linkend= "opt-boot.kernel.sysctl" > boot.kernel.sysctl</link> was moved to
<literal > /etc/sysctl.d/60-nixos.conf</literal> , as
<citerefentry > <refentrytitle > sysctl.d</refentrytitle> <manvolnum > 5</manvolnum> </citerefentry>
recommends prefixing all filenames in <literal > /etc/sysctl.d</literal> with a
two-digit number and a dash to simplify the ordering of the files.
</para>
2019-08-05 13:34:51 +02:00
</listitem>
2019-08-11 13:32:24 +02:00
<listitem >
<para >
We now install the sysctl snippets shipped with systemd.
<itemizedlist >
<para > This enables:</para>
<listitem >
<para > Loose reverse path filtering</para>
</listitem>
<listitem >
<para > Source route filtering</para>
</listitem>
<listitem >
<para >
<literal > fq_codel</literal> as a packet scheduler (this helps to fight bufferbloat)
</para>
</listitem>
</itemizedlist>
This also configures the kernel to pass coredumps to <literal > systemd-coredump</literal> .
These sysctl snippets can be found in <literal > /etc/sysctl.d/50-*.conf</literal> ,
and overridden via <link linkend= "opt-boot.kernel.sysctl" > boot.kernel.sysctl</link>
(which will place the parameters in <literal > /etc/sysctl.d/60-nixos.conf</literal> ).
</para>
</listitem>
2019-08-16 11:29:41 +02:00
<listitem >
<para >
Coredumps are now acquired by <literal > systemd-coredump</literal> by default.
<literal > systemd-coredump</literal> behaviour can still be modified via
<option > systemd.coredump.extraConfig</option> .
To stick to the old behaviour (having the kernel dump to a file called <literal > core</literal>
in the working directory), without piping it through <literal > systemd-coredump</literal> , set
<option > boot.kernel.sysctl."kernel.core_pattern"</option> to <literal > "core"</literal> .
</para>
2019-08-05 13:34:51 +02:00
</listitem>
2019-08-19 12:25:15 +02:00
<listitem >
<para >
<literal > systemd.packages</literal> option now also supports generators and
shutdown scripts. Old <literal > systemd.generator-packages</literal> option has
been removed.
</para>
</listitem>
2019-08-23 15:24:35 +02:00
<listitem >
<para >
The <literal > rmilter</literal> package was removed with associated module and options due deprecation by upstream developer.
Use <literal > rspamd</literal> in proxy mode instead.
</para>
</listitem>
2019-05-23 00:33:44 +02:00
</itemizedlist>
2019-02-25 23:14:41 +01:00
</section>
</section>