Release 18.03 (“Impala”, 2018/03/??)
Highlights In addition to numerous new and upgraded packages, this release has the following highlights: Nix now defaults to 2.0; see its release notes. Linux kernel defaults to the 4.14 branch (it was 4.9). GCC defaults to 7.x (it was 6.x). 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: libmysql has been deprecated, please use mysql.connector-c instead, a compatibility passthru has been added to the MySQL packages. The mysql57 package has a new static output containing the static libraries including libmysqld.a The GNOME version is now 3.26. PHP now defaults to PHP 7.2
New Services The following new services were added since the last release:
Backward Incompatibilities When upgrading from a previous release, please be aware of the following incompatible changes: sound.enable now defaults to false. Dollar signs in options under are 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 postage package (for web-based PostgreSQL administration) has been renamed to pgmanage. The corresponding module has also been renamed. To migrate please rename all options to . 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-dss to the end of your . 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 openssh package now includes Kerberos support by default; the openssh_with_kerberos package is now a deprecated alias. If you do not want Kerberos support, you can do openssh.override { withKerboros = false; }. Note, this also applies to the openssh_hpn package. cc-wrapper has been split in two; there is now also a bintools-wrapper. The most commonly used files in nix-support are now split between the two wrappers. Some commonly used ones, like nix-support/dynamic-linker, are duplicated for backwards compatability, even though they rightly belong only in bintools-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 propagatedNativeBuildInputs should instead be propagatedBuildInputs. Thankfully, that was and is the least used type of dependency. Also, it means that some propagatedBuildInputs should instead be depsTargetTargetPropagated. Other types dependencies should be unaffected. lib.addPassthru drv passthru is removed. Use lib.extendDerivation true passthru drv instead. The memcached service no longer accept dynamic socket paths via . Unix sockets can be still enabled by and will be accessible at /run/memcached/memcached.sock. The hardware.amdHybridGraphics.disable option 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.config was buggy. Previously, if other options in the Postfix module like services.postfix.useSrs were 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.mkForce or lib.mkOverride can be used. The following changes apply if the stateVersion is changed to 18.03 or higher. For stateVersion = "17.09" or lower the old behavior is preserved. matrix-synapse uses postgresql by default instead of sqlite. Migration instructions can be found here . The jid package has been removed, due to maintenance overhead of a go package having non-versioned dependencies. When using (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 attic package 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.piwik was renamed to pkgs.matomo. The service services.piwik was renamed to services.matomo. The data directory /var/lib/piwik was 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 for the nginx configuration changed from piwik.${config.networking.hostName} to matomo.${config.networking.hostName}.${config.networking.domain} if is set, matomo.${config.networking.hostName} if it is not set. If you change your , remember you'll need to update the trustedHosts[] array in /var/lib/matomo/config/config.ini.php as well. The piwik user was renamed to matomo. The service will adjust ownership automatically for files in the data directory. If you use unix socket authentication, remember to give the new matomo user access to the database and to change the username to matomo in 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_x is end-of-life. nodejs-4_x, nodejs-slim-4_x and nodePackages_4_x are removed. The pump.io NixOS 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: is now is now Many new modules are now core modules, most notably and . The better-performing libevent backend is now enabled by default. withCommunityModules now passes through the modules to . Use withOnlyInstalledCommunityModules for modules that should not be enabled directly, e.g lib_ldap. All prometheus exporter modules are now defined as submodules. The exporters are configured using services.prometheus.exporters.
Other Notable Changes ZNC option now defaults to true. That means that old configuration is not overwritten by default when update to the znc options are made. The option has been added for wireless networks with WPA-Enterprise authentication. There is also a new option to directly configure wpa_supplicant and to connect to hidden networks. In the module the following options have been removed: To assign static addresses to an interface the options and should be used instead. The options and have been renamed to respectively. The new options and have been added to set up static routing. The option is now 127.0.0.1 by default. Previously the default behaviour was to listen on all interfaces. services.btrfs.autoScrub has 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.indicators has 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 null the 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 methods waitForUnit, getUnitInfo, startJob and stopJob provide an optional $user argument 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.