13 KiB
Release 18.03 ("Impala", 2018/04/04)
Highlights
In addition to numerous new and upgraded packages, this release has the following highlights:
-
End of support is planned for end of October 2018, handing over to 18.09.
-
Platform support: x86_64-linux and x86_64-darwin since release time (the latter isn't NixOS, really). Binaries for aarch64-linux are available, but no channel exists yet, as it's waiting for some test fixes, etc.
-
Nix now defaults to 2.0; see its release notes.
-
Core version changes: linux: 4.9 -> 4.14, glibc: 2.25 -> 2.26, gcc: 6 -> 7, systemd: 234 -> 237.
-
Desktop version changes: gnome: 3.24 -> 3.26, (KDE) plasma-desktop: 5.10 -> 5.12.
-
MariaDB 10.2, updated from 10.1, is now the default MySQL implementation. While upgrading a few changes have been made to the infrastructure involved:
-
libmysqlhas been deprecated, please usemysql.connector-cinstead, a compatibility passthru has been added to the MySQL packages. -
The
mysql57package has a newstaticoutput containing the static libraries includinglibmysqld.a
-
-
PHP now defaults to PHP 7.2, updated from 7.1.
New Services
The following new services were added since the last release:
-
./config/krb5/default.nix -
./hardware/digitalbitbox.nix -
./misc/label.nix -
./programs/ccache.nix -
./programs/criu.nix -
./programs/digitalbitbox/default.nix -
./programs/less.nix -
./programs/npm.nix -
./programs/plotinus.nix -
./programs/rootston.nix -
./programs/systemtap.nix -
./programs/sway.nix -
./programs/udevil.nix -
./programs/way-cooler.nix -
./programs/yabar.nix -
./programs/zsh/zsh-autoenv.nix -
./services/backup/borgbackup.nix -
./services/backup/crashplan-small-business.nix -
./services/desktops/dleyna-renderer.nix -
./services/desktops/dleyna-server.nix -
./services/desktops/pipewire.nix -
./services/desktops/gnome3/chrome-gnome-shell.nix -
./services/desktops/gnome3/tracker-miners.nix -
./services/hardware/fwupd.nix -
./services/hardware/interception-tools.nix -
./services/hardware/u2f.nix -
./services/hardware/usbmuxd.nix -
./services/mail/clamsmtp.nix -
./services/mail/dkimproxy-out.nix -
./services/mail/pfix-srsd.nix -
./services/misc/gitea.nix -
./services/misc/home-assistant.nix -
./services/misc/ihaskell.nix -
./services/misc/logkeys.nix -
./services/misc/novacomd.nix -
./services/misc/osrm.nix -
./services/misc/plexpy.nix -
./services/misc/pykms.nix -
./services/misc/tzupdate.nix -
./services/monitoring/fusion-inventory.nix -
./services/monitoring/prometheus/exporters.nix -
./services/network-filesystems/beegfs.nix -
./services/network-filesystems/davfs2.nix -
./services/network-filesystems/openafs/client.nix -
./services/network-filesystems/openafs/server.nix -
./services/network-filesystems/ceph.nix -
./services/networking/aria2.nix -
./services/networking/monero.nix -
./services/networking/nghttpx/default.nix -
./services/networking/nixops-dns.nix -
./services/networking/rxe.nix -
./services/networking/stunnel.nix -
./services/web-apps/matomo.nix -
./services/web-apps/restya-board.nix -
./services/web-servers/mighttpd2.nix -
./services/x11/fractalart.nix -
./system/boot/binfmt.nix -
./system/boot/grow-partition.nix -
./tasks/filesystems/ecryptfs.nix -
./virtualisation/hyperv-guest.nix
Backward Incompatibilities
When upgrading from a previous release, please be aware of the following incompatible changes:
-
sound.enablenow defaults to false. -
Dollar signs in options under
services.postfixare passed verbatim to Postfix, which will interpret them as the beginning of a parameter expression. This was already true for string-valued options in the previous release, but not for list-valued options. If you need to pass literal dollar signs through Postfix, double them. -
The
postagepackage (for web-based PostgreSQL administration) has been renamed topgmanage. The corresponding module has also been renamed. To migrate please rename allservices.postageoptions toservices.pgmanage. -
Package attributes starting with a digit have been prefixed with an underscore sign. This is to avoid quoting in the configuration and other issues with command-line tools like
nix-env. The change affects the following packages:-
2048-in-terminal→_2048-in-terminal -
90secondportraits→_90secondportraits -
2bwm→_2bwm -
389-ds-base→_389-ds-base
-
-
The OpenSSH service no longer enables support for DSA keys by default, which could cause a system lock out. Update your keys or, unfavorably, re-enable DSA support manually.
DSA support was deprecated in OpenSSH 7.0, due to it being too weak. To re-enable support, add
PubkeyAcceptedKeyTypes +ssh-dssto the end of yourservices.openssh.extraConfig.After updating the keys to be stronger, anyone still on a pre-17.03 version is safe to jump to 17.03, as vetted here.
-
The
opensshpackage now includes Kerberos support by default; theopenssh_with_kerberospackage is now a deprecated alias. If you do not want Kerberos support, you can doopenssh.override { withKerberos = false; }. Note, this also applies to theopenssh_hpnpackage. -
cc-wrapperhas been split in two; there is now also abintools-wrapper. The most commonly used files innix-supportare now split between the two wrappers. Some commonly used ones, likenix-support/dynamic-linker, are duplicated for backwards compatibility, even though they rightly belong only inbintools-wrapper. Other more obscure ones are just moved. -
The propagation logic has been changed. The new logic, along with new types of dependencies that go with, is thoroughly documented in the "Specifying dependencies" section of the "Standard Environment" chapter of the nixpkgs manual. The old logic isn't but is easy to describe: dependencies were propagated as the same type of dependency no matter what. In practice, that means that many
propagatedNativeBuildInputsshould instead bepropagatedBuildInputs. Thankfully, that was and is the least used type of dependency. Also, it means that somepropagatedBuildInputsshould instead bedepsTargetTargetPropagated. Other types dependencies should be unaffected. -
lib.addPassthru drv passthruis removed. Uselib.extendDerivation true passthru drvinstead. -
The
memcachedservice no longer accept dynamic socket paths viaservices.memcached.socket. Unix sockets can be still enabled byservices.memcached.enableUnixSocketand will be accessible at/run/memcached/memcached.sock. -
The
hardware.amdHybridGraphics.disableoption was removed for lack of a maintainer. If you still need this module, you may wish to include a copy of it from an older version of nixos in your imports. -
The merging of config options for
services.postfix.configwas buggy. Previously, if other options in the Postfix module likeservices.postfix.useSrswere set and the user set config options that were also set by such options, the resulting config wouldn't include all options that were needed. They are now merged correctly. If config options need to be overridden,lib.mkForceorlib.mkOverridecan be used. -
The following changes apply if the
stateVersionis changed to 18.03 or higher. ForstateVersion = "17.09"or lower the old behavior is preserved.matrix-synapseuses postgresql by default instead of sqlite. Migration instructions can be found here .
-
The
jidpackage has been removed, due to maintenance overhead of a go package having non-versioned dependencies. -
When using
services.xserver.libinput(enabled by default in GNOME), it now handles all input devices, not just touchpads. As a result, you might need to re-evaluate any custom Xorg configuration. In particular,Option "XkbRules" "base"may result in broken keyboard layout. -
The
atticpackage was removed. A maintained fork called Borg should be used instead. Migration instructions can be found here. -
The Piwik analytics software was renamed to Matomo:
-
The package
pkgs.piwikwas renamed topkgs.matomo. -
The service
services.piwikwas renamed toservices.matomo. -
The data directory
/var/lib/piwikwas renamed to/var/lib/matomo. All files will be moved automatically on first startup, but you might need to adjust your backup scripts. -
The default
serverNamefor the nginx configuration changed frompiwik.${config.networking.hostName}tomatomo.${config.networking.hostName}.${config.networking.domain}ifconfig.networking.domainis set,matomo.${config.networking.hostName}if it is not set. If you change yourserverName, remember you'll need to update thetrustedHosts[]array in/var/lib/matomo/config/config.ini.phpas well. -
The
piwikuser was renamed tomatomo. The service will adjust ownership automatically for files in the data directory. If you use unix socket authentication, remember to give the newmatomouser access to the database and to change theusernametomatomoin the[database]section of/var/lib/matomo/config/config.ini.php. -
If you named your database `piwik`, you might want to rename it to `matomo` to keep things clean, but this is neither enforced nor required.
-
-
nodejs-4_xis end-of-life.nodejs-4_x,nodejs-slim-4_xandnodePackages_4_xare removed. -
The
pump.ioNixOS module was removed. It is now maintained as an external module. -
The Prosody XMPP server has received a major update. The following modules were renamed:
-
services.prosody.modules.httpserveris nowservices.prosody.modules.http_files -
services.prosody.modules.consoleis nowservices.prosody.modules.admin_telnet
Many new modules are now core modules, most notably
services.prosody.modules.carbonsandservices.prosody.modules.mam.The better-performing
libeventbackend is now enabled by default.withCommunityModulesnow passes through the modules toservices.prosody.extraModules. UsewithOnlyInstalledCommunityModulesfor modules that should not be enabled directly, e.glib_ldap. -
-
All prometheus exporter modules are now defined as submodules. The exporters are configured using
services.prometheus.exporters.
Other Notable Changes
-
ZNC option
services.znc.mutablenow defaults totrue. That means that old configuration is not overwritten by default when update to the znc options are made. -
The option
networking.wireless.networks.<name>.authhas been added for wireless networks with WPA-Enterprise authentication. There is also a newextraConfigoption to directly configurewpa_supplicantandhiddento connect to hidden networks. -
In the module
networking.interfaces.<name>the following options have been removed:-
ipAddress -
ipv6Address -
prefixLength -
ipv6PrefixLength -
subnetMask
To assign static addresses to an interface the options
ipv4.addressesandipv6.addressesshould be used instead. The optionsip4andip6have been renamed toipv4.addressesipv6.addressesrespectively. The new optionsipv4.routesandipv6.routeshave been added to set up static routing. -
-
The option
services.logstash.listenAddressis now127.0.0.1by default. Previously the default behaviour was to listen on all interfaces. -
services.btrfs.autoScrubhas been added, to periodically check btrfs filesystems for data corruption. If there's a correct copy available, it will automatically repair corrupted blocks. -
displayManager.lightdm.greeters.gtk.clock-format.has been added, the clock format string (as expected by strftime, e.g.%H:%M) to use with the lightdm gtk greeter panel.If set to null the default clock format is used.
-
displayManager.lightdm.greeters.gtk.indicatorshas been added, a list of allowed indicator modules to use with the lightdm gtk greeter panel.Built-in indicators include
~a11y,~language,~session,~power,~clock,~host,~spacer. Unity indicators can be represented by short name (e.g.sound,power), service file name, or absolute path.If set to
nullthe default indicators are used.In order to have the previous default configuration add
{ services.xserver.displayManager.lightdm.greeters.gtk.indicators = [ "~host" "~spacer" "~clock" "~spacer" "~session" "~language" "~a11y" "~power" ]; }to your
configuration.nix. -
The NixOS test driver supports user services declared by
systemd.user.services. The methodswaitForUnit,getUnitInfo,startJobandstopJobprovide an optional$userargument for that purpose. -
Enabling bash completion on NixOS,
programs.bash.enableCompletion, will now also enable completion for the Nix command line tools by installing the nix-bash-completions package. -
The vim/kakoune plugin updater now reads from a CSV file: check
pkgs/applications/editors/vim/plugins/vim-plugin-namesout to see the new format