1 <section xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
5 xml:id="sec-release-20.03">
6 <title>Release 20.03 (“Markhor”, 2020.04/20)</title>
8 <section xmlns="http://docbook.org/ns/docbook"
9 xmlns:xlink="http://www.w3.org/1999/xlink"
10 xmlns:xi="http://www.w3.org/2001/XInclude"
12 xml:id="sec-release-20.03-highlights">
13 <title>Highlights</title>
16 In addition to numerous new and upgraded packages, this release has the
23 Support is planned until the end of October 2020, handing over to 20.09.
27 <para>Core version changes:</para>
28 <para>gcc: 8.3.0 -> 9.2.0</para>
29 <para>glibc: 2.27 -> 2.30</para>
30 <para>linux: 4.19 -> 5.4</para>
31 <para>mesa: 19.1.5 -> 19.3.3</para>
32 <para>openssl: 1.0.2u -> 1.1.1d</para>
35 <para>Desktop version changes:</para>
36 <para>plasma5: 5.16.5 -> 5.17.5</para>
37 <para>kdeApplications: 19.08.2 -> 19.12.3</para>
38 <para>gnome3: 3.32 -> 3.34</para>
39 <para>pantheon: 5.0 -> 5.1.3</para>
43 Linux kernel is updated to branch 5.4 by default (from 4.19).
48 Postgresql for NixOS service now defaults to v11.
53 The graphical installer image starts the graphical session automatically.
54 Before you'd be greeted by a tty and asked to enter <command>systemctl start display-manager</command>.
55 It is now possible to disable the display-manager from running by selecting the <literal>Disable display-manager</literal>
56 quirk in the boot menu.
61 GNOME 3 has been upgraded to 3.34. Please take a look at their
62 <link xlink:href="https://help.gnome.org/misc/release-notes/3.34">Release Notes</link>
68 If you enable the Pantheon Desktop Manager via
69 <xref linkend="opt-services.xserver.desktopManager.pantheon.enable" />, we now default to also use
70 <link xlink:href="https://blog.elementary.io/say-hello-to-the-new-greeter/">
71 Pantheon's newly designed greeter
73 Contrary to NixOS's usual update policy, Pantheon will receive updates during the cycle of
74 NixOS 20.03 when backwards compatible.
79 By default zfs pools will now be trimmed on a weekly basis.
80 Trimming is only done on supported devices (i.e. NVME or SSDs)
81 and should improve throughput and lifetime of these devices.
82 It is controlled by the <varname>services.zfs.trim.enable</varname> varname.
83 The zfs scrub service (<varname>services.zfs.autoScrub.enable</varname>)
84 and the zfs autosnapshot service (<varname>services.zfs.autoSnapshot.enable</varname>)
85 are now only enabled if zfs is set in <varname>config.boot.initrd.supportedFilesystems</varname> or
86 <varname>config.boot.supportedFilesystems</varname>. These lists will automatically contain
87 zfs as soon as any zfs mountpoint is configured in <varname>fileSystems</varname>.
92 <command>nixos-option</command> has been rewritten in C++, speeding it up, improving correctness,
93 and adding a <option>-r</option> option which prints all options and their values recursively.
98 <option>services.xserver.desktopManager.default</option> and <option>services.xserver.windowManager.default</option> options were replaced by a single <xref linkend="opt-services.xserver.displayManager.defaultSession"/> option to improve support for upstream session files. If you used something like:
100 services.xserver.desktopManager.default = "xfce";
101 services.xserver.windowManager.default = "icewm";
103 you should change it to:
105 services.xserver.displayManager.defaultSession = "xfce+icewm";
111 The testing driver implementation in NixOS is now in Python <filename>make-test-python.nix</filename>.
112 This was done by Jacek Galowicz (<link xlink:href="https://github.com/tfc">@tfc</link>), and with the
113 collaboration of Julian Stecklina (<link xlink:href="https://github.com/blitz">@blitz</link>) and
114 Jana Traue (<link xlink:href="https://github.com/jtraue">@jtraue</link>). All documentation has been updated to use this
115 testing driver, and a vast majority of the 286 tests in NixOS were ported to python driver. In 20.09 the Perl driver implementation,
116 <filename>make-test.nix</filename>, is slated for removal. This should give users of the NixOS integration framework
117 a transitory period to rewrite their tests to use the Python implementation. Users of the Perl driver will see
118 this warning everytime they use it:
120 <prompt>$ </prompt>warning: Perl VM tests are deprecated and will be removed for 20.09.
121 Please update your tests to use the python test driver.
122 See https://github.com/NixOS/nixpkgs/pull/71684 for details.
124 API compatibility is planned to be kept for at least the next release with the perl driver.
130 <section xmlns="http://docbook.org/ns/docbook"
131 xmlns:xlink="http://www.w3.org/1999/xlink"
132 xmlns:xi="http://www.w3.org/2001/XInclude"
134 xml:id="sec-release-20.03-new-services">
135 <title>New Services</title>
138 The following new services were added since the last release:
144 The kubernetes kube-proxy now supports a new hostname configuration
145 <literal>services.kubernetes.proxy.hostname</literal> which has to
146 be set if the hostname of the node should be non default.
151 UPower's configuration is now managed by NixOS and can be customized
152 via <option>services.upower</option>.
157 To use Geary you should enable <xref linkend="opt-programs.geary.enable"/> instead of
158 just adding it to <xref linkend="opt-environment.systemPackages"/>.
159 It was created so Geary could function properly outside of GNOME.
164 <filename>./config/console.nix</filename>
169 <filename>./hardware/brillo.nix</filename>
174 <filename>./hardware/tuxedo-keyboard.nix</filename>
179 <filename>./programs/bandwhich.nix</filename>
184 <filename>./programs/bash-my-aws.nix</filename>
189 <filename>./programs/liboping.nix</filename>
194 <filename>./programs/traceroute.nix</filename>
199 <filename>./services/backup/sanoid.nix</filename>
204 <filename>./services/backup/syncoid.nix</filename>
209 <filename>./services/backup/zfs-replication.nix</filename>
214 <filename>./services/continuous-integration/buildkite-agents.nix</filename>
219 <filename>./services/databases/victoriametrics.nix</filename>
224 <filename>./services/desktops/gnome3/gnome-initial-setup.nix</filename>
229 <filename>./services/desktops/neard.nix</filename>
234 <filename>./services/games/openarena.nix</filename>
239 <filename>./services/hardware/fancontrol.nix</filename>
244 <filename>./services/mail/sympa.nix</filename>
249 <filename>./services/misc/freeswitch.nix</filename>
254 <filename>./services/misc/mame.nix</filename>
259 <filename>./services/monitoring/do-agent.nix</filename>
264 <filename>./services/monitoring/prometheus/xmpp-alerts.nix</filename>
269 <filename>./services/network-filesystems/orangefs/server.nix</filename>
274 <filename>./services/network-filesystems/orangefs/client.nix</filename>
279 <filename>./services/networking/3proxy.nix</filename>
284 <filename>./services/networking/corerad.nix</filename>
289 <filename>./services/networking/go-shadowsocks2.nix</filename>
294 <filename>./services/networking/ntp/openntpd.nix</filename>
299 <filename>./services/networking/shorewall.nix</filename>
304 <filename>./services/networking/shorewall6.nix</filename>
309 <filename>./services/networking/spacecookie.nix</filename>
314 <filename>./services/networking/trickster.nix</filename>
319 <filename>./services/networking/v2ray.nix</filename>
324 <filename>./services/networking/xandikos.nix</filename>
329 <filename>./services/networking/yggdrasil.nix</filename>
334 <filename>./services/web-apps/dokuwiki.nix</filename>
339 <filename>./services/web-apps/gotify-server.nix</filename>
344 <filename>./services/web-apps/grocy.nix</filename>
349 <filename>./services/web-apps/ihatemoney</filename>
354 <filename>./services/web-apps/moinmoin.nix</filename>
359 <filename>./services/web-apps/trac.nix</filename>
364 <filename>./services/web-apps/trilium.nix</filename>
369 <filename>./services/web-apps/shiori.nix</filename>
374 <filename>./services/web-servers/ttyd.nix</filename>
379 <filename>./services/x11/picom.nix</filename>
384 <filename>./services/x11/hardware/digimend.nix</filename>
389 <filename>./services/x11/imwheel.nix</filename>
394 <filename>./virtualisation/cri-o.nix</filename>
401 <section xmlns="http://docbook.org/ns/docbook"
402 xmlns:xlink="http://www.w3.org/1999/xlink"
403 xmlns:xi="http://www.w3.org/2001/XInclude"
405 xml:id="sec-release-20.03-incompatibilities">
406 <title>Backward Incompatibilities</title>
409 When upgrading from a previous release, please be aware of the following
410 incompatible changes:
416 The <package>dhcpcd</package> package <link xlink:href="https://roy.marples.name/archives/dhcpcd-discuss/0002621.html">
417 does not request IPv4 addresses for tap and bridge interfaces anymore by default</link>.
418 In order to still get an address on a bridge interface, one has to disable
419 <literal>networking.useDHCP</literal> and explicitly enable
420 <literal>networking.interfaces.<name>.useDHCP</literal> on
421 every interface, that should get an address via DHCP. This way, dhcpcd
422 is configured in an explicit way about which interface to run on.
427 GnuPG is now built without support for a graphical passphrase entry
428 by default. Please enable the <literal>gpg-agent</literal> user service
429 via the NixOS option <literal>programs.gnupg.agent.enable</literal>.
430 Note that upstream recommends using <literal>gpg-agent</literal> and
431 will spawn a <literal>gpg-agent</literal> on the first invocation of
437 The <literal>dynamicHosts</literal> option has been removed from the
438 <link linkend="opt-networking.networkmanager.enable">NetworkManager</link>
439 module. Allowing (multiple) regular users to override host entries
440 affecting the whole system opens up a huge attack vector.
441 There seem to be very rare cases where this might be useful.
442 Consider setting system-wide host entries using
443 <link linkend="opt-networking.hosts">networking.hosts</link>, provide
444 them via the DNS server in your network, or use
445 <link linkend="opt-environment.etc">environment.etc</link>
446 to add a file into <literal>/etc/NetworkManager/dnsmasq.d</literal>
447 reconfiguring <literal>hostsdir</literal>.
452 The <literal>99-main.network</literal> file was removed. Matching all
453 network interfaces caused many breakages, see
454 <link xlink:href="https://github.com/NixOS/nixpkgs/pull/18962">#18962</link>
455 and <link xlink:href="https://github.com/NixOS/nixpkgs/pull/71106">#71106</link>.
458 We already don't support the global <link linkend="opt-networking.useDHCP">networking.useDHCP</link>,
459 <link linkend="opt-networking.defaultGateway">networking.defaultGateway</link> and
460 <link linkend="opt-networking.defaultGateway6">networking.defaultGateway6</link> options
461 if <link linkend="opt-networking.useNetworkd">networking.useNetworkd</link> is enabled,
462 but direct users to configure the per-device
463 <link linkend="opt-networking.interfaces">networking.interfaces.<name>.…</link> options.
468 The stdenv now runs all bash with <literal>set -u</literal>, to catch the use of undefined variables.
469 Before, it itself used <literal>set -u</literal> but was careful to unset it so other packages' code ran as before.
470 Now, all bash code is held to the same high standard, and the rather complex stateful manipulation of the options can be discarded.
475 The SLIM Display Manager has been removed, as it has been unmaintained since 2013.
476 Consider migrating to a different display manager such as LightDM (current default in NixOS),
477 SDDM, GDM, or using the startx module which uses Xinitrc.
482 The Way Cooler wayland compositor has been removed, as the project has been officially canceled.
483 There are no more <literal>way-cooler</literal> attribute and <literal>programs.way-cooler</literal> options.
488 The BEAM package set has been deleted. You will only find there the different interpreters.
489 You should now use the different build tools coming with the languages with sandbox mode disabled.
494 There is now only one Xfce package-set and module. This means that attributes <literal>xfce4-14</literal>
495 and <literal>xfceUnstable</literal> all now point to the latest Xfce 4.14
496 packages. And in the future NixOS releases will be the latest released version of Xfce available at the
497 time of the release's development (if viable).
502 The <link linkend="opt-services.phpfpm.pools">phpfpm</link> module now sets
503 <literal>PrivateTmp=true</literal> in its systemd units for better process isolation.
504 If you rely on <literal>/tmp</literal> being shared with other services, explicitly override this by
505 setting <literal>serviceConfig.PrivateTmp</literal> to <literal>false</literal> for each phpfpm unit.
510 KDE’s old multimedia framework Phonon no longer supports Qt 4. For that reason, Plasma desktop also does not have <option>enableQt4Support</option> option any more.
515 The BeeGFS module has been removed.
520 The osquery module has been removed.
525 Going forward, <literal>~/bin</literal> in the users home directory will no longer be in <literal>PATH</literal> by default.
526 If you depend on this you should set the option <literal>environment.homeBinInPath</literal> to <literal>true</literal>.
527 The aforementioned option was added this release.
532 The <literal>buildRustCrate</literal> infrastructure now produces <literal>lib</literal> outputs in addition to the <literal>out</literal> output.
533 This has led to drastically reduced closure sizes for some rust crates since development dependencies are now in the <literal>lib</literal> output.
538 Pango was upgraded to 1.44, which no longer uses freetype for font loading. This means that type1
539 and bitmap fonts are no longer supported in applications relying on Pango for font rendering
540 (notably, GTK application). See <link xlink:href="https://gitlab.gnome.org/GNOME/pango/issues/386">
541 upstream issue</link> for more information.
546 The <literal>roundcube</literal> module has been hardened.
550 The password of the database is not written world readable in the store any more. If <literal>database.host</literal> is set to <literal>localhost</literal>, then a unix user of the same name as the database will be created and PostreSQL peer authentication will be used, removing the need for a password. Otherwise, a password is still needed and can be provided with the new option <literal>database.passwordFile</literal>, which should be set to the path of a file containing the password and readable by the user <literal>nginx</literal> only. The <literal>database.password</literal> option is insecure and deprecated. Usage of this option will print a warning.
555 A random <literal>des_key</literal> is set by default in the configuration of roundcube, instead of using the hardcoded and insecure default. To ensure a clean migration, all users will be logged out when you upgrade to this release.
563 The packages <literal>openobex</literal> and <literal>obexftp</literal>
564 are no longer installed when enabling Bluetooth via
565 <option>hardware.bluetooth.enable</option>.
570 The <literal>dump1090</literal> derivation has been changed to use FlightAware's dump1090
571 as its upstream. However, this version does not have an internal webserver anymore. The
572 assets in the <literal>share/dump1090</literal> directory of the derivation can be used
573 in conjunction with an external webserver to replace this functionality.
578 The fourStore and fourStoreEndpoint modules have been removed.
583 Polkit no longer has the user of uid 0 (root) as an admin identity.
584 We now follow the upstream default of only having every member of the wheel
585 group admin privileged. Before it was root and members of wheel.
586 The positive outcome of this is pkexec GUI popups or terminal prompts
587 will no longer require the user to choose between two essentially equivalent
588 choices (whether to perform the action as themselves with wheel permissions, or as the root user).
593 NixOS containers no longer build NixOS manual by default. This saves evaluation time,
594 especially if there are many declarative containers defined. Note that this is already done
595 when <literal><nixos/modules/profiles/minimal.nix></literal> module is included
601 The <literal>kresd</literal> services deprecates the <literal>interfaces</literal> option
602 in favor of the <literal>listenPlain</literal> option which requires full
603 <link xlink:href="https://www.freedesktop.org/software/systemd/man/systemd.socket.html#ListenStream=">systemd.socket compatible</link>
604 declaration which always include a port.
609 Virtual console options have been reorganized and can be found under
610 a single top-level attribute: <literal>console</literal>.
611 The full set of changes is as follows:
616 <literal>i18n.consoleFont</literal> renamed to
617 <link linkend="opt-console.font">console.font</link>
622 <literal>i18n.consoleKeyMap</literal> renamed to
623 <link linkend="opt-console.keyMap">console.keyMap</link>
628 <literal>i18n.consoleColors</literal> renamed to
629 <link linkend="opt-console.colors">console.colors</link>
634 <literal>i18n.consolePackages</literal> renamed to
635 <link linkend="opt-console.packages">console.packages</link>
640 <literal>i18n.consoleUseXkbConfig</literal> renamed to
641 <link linkend="opt-console.useXkbConfig">console.useXkbConfig</link>
646 <literal>boot.earlyVconsoleSetup</literal> renamed to
647 <link linkend="opt-console.earlySetup">console.earlySetup</link>
652 <literal>boot.extraTTYs</literal> renamed to
653 <link linkend="opt-console.extraTTYs">console.extraTTYs</link>
660 The <link linkend="opt-services.awstats.enable">awstats</link> module has been rewritten
661 to serve stats via static html pages, updated on a timer, over <link linkend="opt-services.nginx.virtualHosts">nginx</link>,
662 instead of dynamic cgi pages over <link linkend="opt-services.httpd.enable">apache</link>.
665 Minor changes will be required to migrate existing configurations. Details of the
666 required changes can seen by looking through the <link linkend="opt-services.awstats.enable">awstats</link>
672 The httpd module no longer provides options to support serving web content without defining a virtual host. As a
673 result of this the <link linkend="opt-services.httpd.logPerVirtualHost">services.httpd.logPerVirtualHost</link>
674 option now defaults to <literal>true</literal> instead of <literal>false</literal>. Please update your
675 configuration to make use of <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts</link>.
678 The <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name></link>
679 option has changed type from a list of submodules to an attribute set of submodules, better matching
680 <link linkend="opt-services.nginx.virtualHosts">services.nginx.virtualHosts.<name></link>.
683 This change comes with the addition of the following options which mimic the functionality of their <literal>nginx</literal> counterparts:
684 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.addSSL</link>,
685 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.forceSSL</link>,
686 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.onlySSL</link>,
687 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.enableACME</link>,
688 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.acmeRoot</link>, and
689 <link linkend="opt-services.httpd.virtualHosts">services.httpd.virtualHosts.<name>.useACMEHost</link>.
694 For NixOS configuration options, the <literal>loaOf</literal> type has
695 been deprecated and will be removed in a future release. In nixpkgs,
696 options of this type will be changed to <literal>attrsOf</literal>
697 instead. If you were using one of these in your configuration, you will
698 see a warning suggesting what changes will be required.
701 For example, <link linkend="opt-users.users">users.users</link> is a
702 <literal>loaOf</literal> option that is commonly used as follows:
706 description = "My personal user.";
711 This should be rewritten by removing the list and using the
712 value of <literal>name</literal> as the name of the attribute set:
715 { description = "My personal user.";
721 For more information on this change have look at these links:
722 <link xlink:href="https://github.com/NixOS/nixpkgs/issues/1800">issue #1800</link>,
723 <link xlink:href="https://github.com/NixOS/nixpkgs/pull/63103">PR #63103</link>.
728 For NixOS modules, the types <literal>types.submodule</literal> and <literal>types.submoduleWith</literal> now support
729 paths as allowed values, similar to how <literal>imports</literal> supports paths.
730 Because of this, if you have a module that defines an option of type
731 <literal>either (submodule ...) path</literal>, it will break since a path
732 is now treated as the first type instead of the second. To fix this, change
733 the type to <literal>either path (submodule ...)</literal>.
738 The <link linkend="opt-services.buildkite-agents">Buildkite
739 Agent</link> module and corresponding packages have been updated to
740 3.x, and to support multiple instances of the agent running at the
741 same time. This means you will have to rename
742 <literal>services.buildkite-agent</literal> to
743 <literal>services.buildkite-agents.<name></literal>. Furthermore,
744 the following options have been changed:
749 <literal>services.buildkite-agent.meta-data</literal> has been renamed to
750 <link linkend="opt-services.buildkite-agents">services.buildkite-agents.<name>.tags</link>,
751 to match upstreams naming for 3.x.
752 Its type has also changed - it now accepts an attrset of strings.
757 The<literal>services.buildkite-agent.openssh.publicKeyPath</literal> option
758 has been removed, as it's not necessary to deploy public keys to clone private
764 <literal>services.buildkite-agent.openssh.privateKeyPath</literal>
766 <link linkend="opt-services.buildkite-agents">buildkite-agents.<name>.privateSshKeyPath</link>,
767 as the whole <literal>openssh</literal> now only contained that single option.
772 <link linkend="opt-services.buildkite-agents">services.buildkite-agents.<name>.shell</link>
773 has been introduced, allowing to specify a custom shell to be used.
780 The <literal>citrix_workspace_19_3_0</literal> package has been removed as
781 it will be EOLed within the lifespan of 20.03. For further information,
782 please refer to the <link xlink:href="https://www.citrix.com/de-de/support/product-lifecycle/milestones/receiver.html">support and maintenance information</link> from upstream.
787 The <literal>gcc5</literal> and <literal>gfortran5</literal> packages have been removed.
792 The <option>services.xserver.displayManager.auto</option> module has been removed.
793 It was only intended for use in internal NixOS tests, and gave the false impression
794 of it being a special display manager when it's actually LightDM.
795 Please use the <xref linkend="opt-services.xserver.displayManager.lightdm.autoLogin"/> options instead,
796 or any other display manager in NixOS as they all support auto-login. If you used this module specifically
797 because it permitted root auto-login you can override the lightdm-autologin pam module like:
799 <link xlink:href="#opt-security.pam.services._name__.text">security.pam.services.lightdm-autologin.text</link> = lib.mkForce ''
800 auth requisite pam_nologin.so
801 auth required pam_succeed_if.so quiet
802 auth required pam_permit.so
804 account include lightdm
806 password include lightdm
808 session include lightdm
811 The difference is the:
813 auth required pam_succeed_if.so quiet
815 line, where default it's:
817 auth required pam_succeed_if.so uid >= 1000 quiet
819 not permitting users with uid's below 1000 (like root).
820 All other display managers in NixOS are configured like this.
825 There have been lots of improvements to the Mailman module. As
831 The <option>services.mailman.hyperkittyBaseUrl</option>
832 option has been renamed to <xref
833 linkend="opt-services.mailman.hyperkitty.baseUrl"/>.
838 The <option>services.mailman.hyperkittyApiKey</option>
839 option has been removed. This is because having an option
840 for the Hyperkitty API key meant that the API key would be
841 stored in the world-readable Nix store, which was a
842 security vulnerability. A new Hyperkitty API key will be
843 generated the first time the new Hyperkitty service is run,
844 and it will then be persisted outside of the Nix store. To
845 continue using Hyperkitty, you must set <xref
846 linkend="opt-services.mailman.hyperkitty.enable"/> to
847 <literal>true</literal>.
852 Additionally, some Postfix configuration must now be set
853 manually instead of automatically by the Mailman module:
855 <xref linkend="opt-services.postfix.relayDomains"/> = [ "hash:/var/lib/mailman/data/postfix_domains" ];
856 <xref linkend="opt-services.postfix.config"/>.transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
857 <xref linkend="opt-services.postfix.config"/>.local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
859 This is because some users may want to include other values
860 in these lists as well, and this was not possible if they
861 were set automatically by the Mailman module. It would not
862 have been possible to just concatenate values from multiple
863 modules each setting the values they needed, because the
864 order of elements in the list is significant.
870 <para>The LLVM versions 3.5, 3.9 and 4 (including the corresponding CLang versions) have been dropped.</para>
874 The <option>networking.interfaces.*.preferTempAddress</option> option has
875 been replaced by <option>networking.interfaces.*.tempAddress</option>.
876 The new option allows better control of the IPv6 temporary addresses,
877 including completely disabling them for interfaces where they are not
883 Rspamd was updated to version 2.2. Read
884 <link xlink:href="https://rspamd.com/doc/migration.html#migration-to-rspamd-20">
885 the upstream migration notes</link> carefully. Please be especially
886 aware that some modules were removed and the default Bayes backend is
892 The <literal>*psu</literal> versions of <package>oraclejdk8</package> have been removed
893 as they aren't provided by upstream anymore.
898 The <option>services.dnscrypt-proxy</option> module has been removed
899 as it used the deprecated version of dnscrypt-proxy. We've added
900 <xref linkend="opt-services.dnscrypt-proxy2.enable"/> to use the supported version.
901 This module supports configuration via the Nix attribute set
902 <xref linkend="opt-services.dnscrypt-proxy2.settings" />, or by passing a TOML configuration file via
903 <xref linkend="opt-services.dnscrypt-proxy2.configFile" />.
905 # Example configuration:
906 services.dnscrypt-proxy2.enable = true;
907 services.dnscrypt-proxy2.settings = {
908 listen_addresses = [ "127.0.0.1:43" ];
909 sources.public-resolvers = {
910 urls = [ "https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md" ];
911 cache_file = "public-resolvers.md";
912 minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
917 services.dnsmasq.enable = true;
918 services.dnsmasq.servers = [ "127.0.0.1#43" ];
924 <literal>qesteidutil</literal> has been deprecated in favor of <literal>qdigidoc</literal>.
929 <package>sqldeveloper_18</package> has been removed as it's not maintained anymore,
930 <package>sqldeveloper</package> has been updated to version <literal>19.4</literal>.
931 Please note that this means that this means that the <package>oraclejdk</package> is now
932 required. For further information please read the
933 <link xlink:href="https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-relnotes-194-5908846.html">release notes</link>.
938 Haskell <varname>env</varname> and <varname>shellFor</varname> dev shell environments now organized dependencies the same way as regular builds.
939 In particular, rather than receiving all the different lists of dependencies master together as one big lists, and then partitioning into Haskell and non-Hakell dependencies, they work from the original many different dependency parameters and don't need to algorithmically partition anything.
942 This means that if you incorrectly categorize a dependency, e.g. non-Haskell library dependency as a <varname>buildDepends</varname> or run-time Haskell dependency as a <varname>setupDepends</varname>, whereas things would have worked before they may not work now.
947 The <package>gcc-snapshot</package>-package has been removed. It's marked as broken for >2 years and used to point
948 to a fairly old snapshot from the <package>gcc7</package>-branch.
953 The <citerefentry><refentrytitle>nixos-build-vms</refentrytitle><manvolnum>8</manvolnum>
954 </citerefentry>-script now uses the python test-driver.
959 The <package>riot-web</package> package now accepts configuration overrides as an attribute set instead of a string.
960 A formerly used JSON configuration can be converted to an attribute set with <literal>builtins.fromJSON</literal>.
963 The new default configuration also disables automatic guest account registration and analytics to improve privacy.
964 The previous behavior can be restored by setting <literal>config.riot-web.conf = { disable_guests = false; piwik = true; }</literal>.
969 Stand-alone usage of <literal>Upower</literal> now requires
970 <option>services.upower.enable</option> instead of just installing into
971 <xref linkend="opt-environment.systemPackages"/>.
976 <package>nextcloud</package> has been updated to <literal>v18.0.2</literal>. This means
977 that users from NixOS 19.09 can't upgrade directly since you can only move one version
978 forward and 19.09 uses <literal>v16.0.8</literal>.
981 To provide a safe upgrade-path and to circumvent similar issues in the future, the following
986 The <package>pkgs.nextcloud</package>-attribute has been removed and replaced with
987 versioned attributes (currently <package>pkgs.nextcloud17</package> and
988 <package>pkgs.nextcloud18</package>). With this change major-releases can be backported
989 without breaking stuff and to make upgrade-paths easier.
994 Existing setups will be detected using
995 <link linkend="opt-system.stateVersion">system.stateVersion</link>: by default,
996 <package>nextcloud17</package> will be used, but will raise a warning which notes
997 that after that deploy it's recommended to update to the latest stable version
998 (<package>nextcloud18</package>) by declaring the newly introduced setting
999 <link linkend="opt-services.nextcloud.package">services.nextcloud.package</link>.
1004 Users with an overlay (e.g. to use <package>nextcloud</package> at version
1005 <literal>v18</literal> on <literal>19.09</literal>) will get an evaluation error
1006 by default. This is done to ensure that our
1007 <link linkend="opt-services.nextcloud.package">package</link>-option doesn't select an
1008 older version by accident. It's recommended to use <package>pkgs.nextcloud18</package>
1009 or to set <link linkend="opt-services.nextcloud.package">package</link> to
1010 <package>pkgs.nextcloud</package> explicitly.
1017 Please note that if you're coming from <literal>19.03</literal> or older, you have
1018 to manually upgrade to <literal>19.09</literal> first to upgrade your server
1025 <package>Hydra</package> has gained a massive performance improvement due to
1026 <link xlink:href="https://github.com/NixOS/hydra/pull/710">some database schema
1027 changes</link> by adding several IDs and better indexing. However, it's necessary
1028 to upgrade Hydra in multiple steps:
1032 At first, an older version of Hydra needs to be deployed which adds those
1033 (nullable) columns. When having set <link linkend="opt-system.stateVersion">stateVersion
1034 </link> to a value older than <literal>20.03</literal>, this package will be selected
1035 by default from the module when upgrading. Otherwise, the package can be deployed using
1036 the following config:
1037 <programlisting>{ pkgs, ... }: {
1038 <link linkend="opt-services.hydra.package">services.hydra.package</link> = pkgs.hydra-migration;
1044 Automatically fill the newly added ID columns on the server by running the following
1047 <prompt>$ </prompt>hydra-backfill-ids
1050 <para>Please note that this process can take a while depending on your database-size!</para>
1056 Deploy a newer version of Hydra to activate the DB optimizations. This can be done by
1057 using <package>hydra-unstable</package>. This package already includes
1058 <link xlink:href="https://github.com/nixos/rfcs/pull/49">flake-support</link> and is
1059 therefore compiled against <package>pkgs.nixFlakes</package>.
1062 If your <link linkend="opt-system.stateVersion">stateVersion</link> is set to
1063 <literal>20.03</literal> or greater, <package>hydra-unstable</package> will be used
1064 automatically! This will break your setup if you didn't run the migration.
1067 Please note that Hydra is currently not available with <package>nixStable</package>
1068 as this doesn't compile anymore.
1074 <package>pkgs.hydra</package> has been removed to ensure a graceful database-migration
1075 using the dedicated package-attributes. If you still have <package>pkgs.hydra</package>
1076 defined in e.g. an overlay, an assertion error will be thrown. To circumvent this,
1077 you need to set <xref linkend="opt-services.hydra.package" /> to <package>pkgs.hydra</package>
1078 explicitly and make sure you know what you're doing!
1085 The TokuDB storage engine will be disabled in <package>mariadb</package> 10.5. It is recommended to switch
1086 to RocksDB. See also <link xlink:href="https://mariadb.com/kb/en/tokudb/">TokuDB</link>.
1092 <section xmlns="http://docbook.org/ns/docbook"
1093 xmlns:xlink="http://www.w3.org/1999/xlink"
1094 xmlns:xi="http://www.w3.org/2001/XInclude"
1096 xml:id="sec-release-20.03-notable-changes">
1097 <title>Other Notable Changes</title>
1101 <para>SD images are now compressed by default using <literal>bzip2</literal>.</para>
1105 The nginx web server previously started its master process as root
1106 privileged, then ran worker processes as a less privileged identity user
1107 (the <literal>nginx</literal> user).
1108 This was changed to start all of nginx as a less privileged user (defined by
1109 <literal>services.nginx.user</literal> and
1110 <literal>services.nginx.group</literal>). As a consequence, all files that
1111 are needed for nginx to run (included configuration fragments, SSL
1112 certificates and keys, etc.) must now be readable by this less privileged
1116 To continue to use the old approach, you can configure:
1118 services.nginx.appendConfig = let cfg = config.services.nginx; in ''user ${cfg.user} ${cfg.group};'';
1119 systemd.services.nginx.serviceConfig.User = lib.mkForce "root";
1125 OpenSSH has been upgraded from 7.9 to 8.1, improving security and adding features
1126 but with potential incompatibilities. Consult the
1127 <link xlink:href="https://www.openssh.com/txt/release-8.1">
1128 release announcement</link> for more information.
1133 <literal>PRETTY_NAME</literal> in <literal>/etc/os-release</literal>
1134 now uses the short rather than full version string.
1139 The ACME module has switched from simp-le to <link xlink:href="https://github.com/go-acme/lego">lego</link>
1140 which allows us to support DNS-01 challenges and wildcard certificates. The following options have been added:
1141 <link linkend="opt-security.acme.acceptTerms">security.acme.acceptTerms</link>,
1142 <link linkend="opt-security.acme.certs">security.acme.certs.<name>.dnsProvider</link>,
1143 <link linkend="opt-security.acme.certs">security.acme.certs.<name>.credentialsFile</link>,
1144 <link linkend="opt-security.acme.certs">security.acme.certs.<name>.dnsPropagationCheck</link>.
1145 As well as this, the options <literal>security.acme.acceptTerms</literal> and either
1146 <literal>security.acme.email</literal> or <literal>security.acme.certs.<name>.email</literal>
1147 must be set in order to use the ACME module.
1148 Certificates will be regenerated on activation, no account or certificate will be migrated from simp-le.
1149 In particular private keys will not be preserved. However, the credentials for simp-le are preserved and
1150 thus it is possible to roll back to previous versions without breaking certificate generation.
1151 Note also that in contrary to simp-le a new private key is recreated at each renewal by default, which can
1152 have consequences if you embed your public key in apps.
1157 It is now possible to unlock LUKS-Encrypted file systems using a FIDO2 token
1158 via <option>boot.initrd.luks.fido2Support</option>.
1163 Predictably named network interfaces get renamed in stage-1. This means that it is possible
1164 to use the proper interface name for e.g. Dropbear setups.
1167 For further reference, please read <link xlink:href="https://github.com/NixOS/nixpkgs/pull/68953">#68953</link> or the corresponding <link xlink:href="https://discourse.nixos.org/t/predictable-network-interface-names-in-initrd/4055">discourse thread</link>.
1172 The <package>matrix-synapse</package>-package has been updated to
1173 <link xlink:href="https://github.com/matrix-org/synapse/releases/tag/v1.11.1">v1.11.1</link>.
1174 Due to <link xlink:href="https://github.com/matrix-org/synapse/releases/tag/v1.10.0rc1">stricter requirements</link>
1175 for database configuration when using <package>postgresql</package>, the automated database setup
1176 of the module has been removed to avoid any further edge-cases.
1179 <package>matrix-synapse</package> expects <literal>postgresql</literal>-databases to have the options
1180 <literal>LC_COLLATE</literal> and <literal>LC_CTYPE</literal> set to
1181 <link xlink:href="https://www.postgresql.org/docs/12/locale.html"><literal>'C'</literal></link> which basically
1182 instructs <literal>postgresql</literal> to ignore any locale-based preferences.
1185 Depending on your setup, you need to incorporate one of the following changes in your setup to
1188 <listitem><para>If you use <literal>sqlite3</literal> you don't need to do anything.</para></listitem>
1189 <listitem><para>If you use <literal>postgresql</literal> on a different server, you don't need
1190 to change anything as well since this module was never designed to configure remote databases.
1192 <listitem><para>If you use <literal>postgresql</literal> and configured your synapse initially on
1193 <literal>19.09</literal> or older, you simply need to enable <package>postgresql</package>-support
1195 <programlisting>{ ... }: {
1196 services.matrix-synapse = {
1197 <link linkend="opt-services.matrix-synapse.enable">enable</link> = true;
1198 /* and all the other config you've defined here */
1200 <link linkend="opt-services.postgresql.enable">services.postgresql.enable</link> = true;
1203 <listitem><para>If you deploy a fresh <package>matrix-synapse</package>, you need to configure
1204 the database yourself (e.g. by using the
1205 <link linkend="opt-services.postgresql.initialScript">services.postgresql.initialScript</link>
1206 option). An example for this can be found in the
1207 <link linkend="module-services-matrix">documentation of the Matrix module</link>.
1209 <listitem><para>If you initially deployed your <package>matrix-synapse</package> on
1210 <literal>nixos-unstable</literal> <emphasis>after</emphasis> the <literal>19.09</literal>-release,
1211 your database is misconfigured due to a regression in NixOS. For now, <package>matrix-synapse</package> will
1212 startup with a warning, but it's recommended to reconfigure the database to set the values
1213 <literal>LC_COLLATE</literal> and <literal>LC_CTYPE</literal> to
1214 <link xlink:href="https://www.postgresql.org/docs/12/locale.html"><literal>'C'</literal></link>.
1221 The <link linkend="opt-systemd.network.links">systemd.network.links</link> option is now respected
1222 even when <link linkend="opt-systemd.network.enable">systemd-networkd</link> is disabled.
1223 This mirrors the behaviour of systemd - It's udev that parses <literal>.link</literal> files,
1224 not <command>systemd-networkd</command>.
1229 <package>mongodb</package> has been updated to version <literal>3.4.24</literal>.
1232 Please note that <package>mongodb</package> has been relicensed under their own
1233 <link xlink:href="https://www.mongodb.com/licensing/server-side-public-license/faq"><literal>
1234 sspl</literal></link>-license. Since it's not entirely free and not OSI-approved,
1235 it's listed as non-free. This means that Hydra doesn't provide prebuilt
1236 <package>mongodb</package>-packages and needs to be built locally.