15 KiB
Release 17.09 ("Hummingbird", 2017/09/??)
Highlights
In addition to numerous new and upgraded packages, this release has the following highlights:
-
The GNOME version is now 3.24. KDE Plasma was upgraded to 5.10, KDE Applications to 17.08.1 and KDE Frameworks to 5.37.
-
The user handling now keeps track of deallocated UIDs/GIDs. When a user or group is revived, this allows it to be allocated the UID/GID it had before. A consequence is that UIDs and GIDs are no longer reused.
-
The module option
services.xserver.xrandrHeadsnow causes the first head specified in this list to be set as the primary head. Apart from that, it's now possible to also set additional options by using an attribute set, for example:{ services.xserver.xrandrHeads = [ "HDMI-0" { output = "DVI-0"; primary = true; monitorConfig = '' Option "Rotate" "right" ''; } ]; }This will set the
DVI-0output to be the primary head, even thoughHDMI-0is the first head in the list. -
The handling of SSL in the
services.nginxmodule has been cleaned up, renaming the misnamedenableSSLtoonlySSLwhich reflects its original intention. This is not to be used with the already existingforceSSLwhich creates a second non-SSL virtual host redirecting to the SSL virtual host. This by chance had worked earlier due to specific implementation details. In case you had specified both please remove theenableSSLoption to keep the previous behaviour.Another
addSSLoption has been introduced to configure both a non-SSL virtual host and an SSL virtual host with the same configuration.Options to configure
resolveroptions andupstreamblocks have been introduced. See their information for further details.The
portoption has been replaced by a more genericlistenoption which makes it possible to specify multiple addresses, ports and SSL configs dependant on the new SSL handling mentioned above.
New Services
The following new services were added since the last release:
-
config/fonts/fontconfig-penultimate.nix -
config/fonts/fontconfig-ultimate.nix -
config/terminfo.nix -
hardware/sensor/iio.nix -
hardware/nitrokey.nix -
hardware/raid/hpsa.nix -
programs/browserpass.nix -
programs/gnupg.nix -
programs/qt5ct.nix -
programs/slock.nix -
programs/thefuck.nix -
security/auditd.nix -
security/lock-kernel-modules.nix -
service-managers/docker.nix -
service-managers/trivial.nix -
services/admin/salt/master.nix -
services/admin/salt/minion.nix -
services/audio/slimserver.nix -
services/cluster/kubernetes/default.nix -
services/cluster/kubernetes/dns.nix -
services/cluster/kubernetes/dashboard.nix -
services/continuous-integration/hail.nix -
services/databases/clickhouse.nix -
services/databases/postage.nix -
services/desktops/gnome3/gnome-disks.nix -
services/desktops/gnome3/gpaste.nix -
services/logging/SystemdJournal2Gelf.nix -
services/logging/heartbeat.nix -
services/logging/journalwatch.nix -
services/logging/syslogd.nix -
services/mail/mailhog.nix -
services/mail/nullmailer.nix -
services/misc/airsonic.nix -
services/misc/autorandr.nix -
services/misc/exhibitor.nix -
services/misc/fstrim.nix -
services/misc/gollum.nix -
services/misc/irkerd.nix -
services/misc/jackett.nix -
services/misc/radarr.nix -
services/misc/snapper.nix -
services/monitoring/osquery.nix -
services/monitoring/prometheus/collectd-exporter.nix -
services/monitoring/prometheus/fritzbox-exporter.nix -
services/network-filesystems/kbfs.nix -
services/networking/dnscache.nix -
services/networking/fireqos.nix -
services/networking/iwd.nix -
services/networking/keepalived/default.nix -
services/networking/keybase.nix -
services/networking/lldpd.nix -
services/networking/matterbridge.nix -
services/networking/squid.nix -
services/networking/tinydns.nix -
services/networking/xrdp.nix -
services/security/shibboleth-sp.nix -
services/security/sks.nix -
services/security/sshguard.nix -
services/security/torify.nix -
services/security/usbguard.nix -
services/security/vault.nix -
services/system/earlyoom.nix -
services/system/saslauthd.nix -
services/web-apps/nexus.nix -
services/web-apps/pgpkeyserver-lite.nix -
services/web-apps/piwik.nix -
services/web-servers/lighttpd/collectd.nix -
services/web-servers/minio.nix -
services/x11/display-managers/xpra.nix -
services/x11/xautolock.nix -
tasks/filesystems/bcachefs.nix -
tasks/powertop.nix
Backward Incompatibilities
When upgrading from a previous release, please be aware of the following incompatible changes:
-
In an Qemu-based virtualization environment, the network interface names changed from i.e.
enp0s3toens3.This is due to a kernel configuration change. The new naming is consistent with those of other Linux distributions with systemd. See #29197 for more information.
A machine is affected if the
virt-whattool either returnsqemuorkvmand has interface names used in any part of its NixOS configuration, in particular if a static network configuration withnetworking.interfacesis used.Before rebooting affected machines, please ensure:
-
Change the interface names in your NixOS configuration. The first interface will be called
ens3, the second oneens8and starting from there incremented by 1. -
After changing the interface names, rebuild your system with
nixos-rebuild bootto activate the new configuration after a reboot. If you switch to the new configuration right away you might lose network connectivity! If usingnixops, deploy withnixops deploy --force-reboot.
-
-
The following changes apply if the
stateVersionis changed to 17.09 or higher. ForstateVersion = "17.03"or lower the old behavior is preserved.-
The
postgresdefault version was changed from 9.5 to 9.6. -
The
postgressuperuser name has changed fromroottopostgresto more closely follow what other Linux distributions are doing. -
The
postgresdefaultdataDirhas changed from/var/db/postgresto/var/lib/postgresql/$psqlSchemawhere $psqlSchema is 9.6 for example. -
The
mysqldefaultdataDirhas changed from/var/mysqlto/var/lib/mysql. -
Radicale's default package has changed from 1.x to 2.x. Instructions to migrate can be found here . It is also possible to use the newer version by setting the
packagetoradicale2, which is done automatically whenstateVersionis 17.09 or higher. TheextraArgsoption has been added to allow passing the data migration arguments specified in the instructions; see theradicale.nixNixOS test for an example migration.
-
-
The
aiccupackage was removed. This is due to SixXS sunsetting its IPv6 tunnel. -
The
fanctlpackage andfanmodule have been removed due to the developers not upstreaming their iproute2 patches and lagging with compatibility to recent iproute2 versions. -
Top-level
ideapackage collection was renamed. All JetBrains IDEs are now atjetbrains. -
flexget's state database cannot be upgraded to its new internal format, requiring removal of any existingdb-config.sqlitewhich will be automatically recreated. -
The
ipfsservice now doesn't ignore thedataDiroption anymore. If you've ever set this option to anything other than the default you'll have to either unset it (so the default gets used) or migrate the old data manually withdataDir=<valueOfDataDir> mv /var/lib/ipfs/.ipfs/* $dataDir rmdir /var/lib/ipfs/.ipfs -
The
caddyservice was previously using an extra.caddydirectory in the data directory specified with thedataDiroption. The contents of the.caddydirectory are now expected to be in thedataDir. -
The
ssh-agentuser service is not started by default anymore. Useprograms.ssh.startAgentto enable it if needed. There is also a newprograms.gnupg.agentmodule that creates agpg-agentuser service. It can also serve as a SSH agent ifenableSSHSupportis set. -
The
services.tinc.networks.<name>.listenAddressoption had a misleading name that did not correspond to its behavior. It now correctly defines the ip to listen for incoming connections on. To keep the previous behaviour, useservices.tinc.networks.<name>.bindToAddressinstead. Refer to the description of the options for more details. -
tlsdatepackage and module were removed. This is due to the project being dead and not building with openssl 1.1. -
wvdialpackage and module were removed. This is due to the project being dead and not building with openssl 1.1. -
cc-wrapper's setup-hook now exports a number of environment variables corresponding to binutils binaries, (e.g.LD,STRIP,RANLIB, etc). This is done to prevent packages' build systems guessing, which is harder to predict, especially when cross-compiling. However, some packages have broken due to this---their build systems either not supporting, or claiming to support without adequate testing, taking such environment variables as parameters. -
services.firefox.syncservernow runs by default as a non-root user. To accommodate this change, the default sqlite database location has also been changed. Migration should work automatically. Refer to the description of the options for more details. -
The
compizwindow manager and package was removed. The system support had been broken for several years. -
Touchpad support should now be enabled through
libinputassynapticsis now deprecated. See the optionservices.xserver.libinput.enable. -
grsecurity/PaX support has been dropped, following upstream's decision to cease free support. See upstream's announcement for more information. No complete replacement for grsecurity/PaX is available presently.
-
services.mysqlnow has declarative configuration of databases and users with theensureDatabasesandensureUsersoptions.These options will never delete existing databases and users, especially not when the value of the options are changed.
The MySQL users will be identified using Unix socket authentication. This authenticates the Unix user with the same name only, and that without the need for a password.
If you have previously created a MySQL
rootuser with a password, you will need to addrootuser for unix socket authentication before using the new options. This can be done by running the following SQL script:CREATE USER 'root'@'%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; -- Optionally, delete the password-authenticated user: -- DROP USER 'root'@'localhost'; -
services.mysqlBackupnow works by default without any user setup, including for users other thanmysql.By default, the
mysqluser is no longer the user which performs the backup. Instead a system accountmysqlbackupis used.The
mysqlBackupservice is also now using systemd timers instead ofcron.Therefore, the
services.mysqlBackup.periodoption no longer exists, and has been replaced withservices.mysqlBackup.calendar, which is in the format of systemd.time(7).If you expect to be sent an e-mail when the backup fails, consider using a script which monitors the systemd journal for errors. Regretfully, at present there is no built-in functionality for this.
You can check that backups still work by running
systemctl start mysql-backupthensystemctl status mysql-backup. -
Templated systemd services e.g
container@nameare now handled correctly when switching to a new configuration, resulting in them being reloaded. -
Steam: the
newStdcppparameter was removed and should not be needed anymore. -
Redis has been updated to version 4 which mandates a cluster mass-restart, due to changes in the network handling, in order to ensure compatibility with networks NATing traffic.
Other Notable Changes
-
Modules can now be disabled by using disabledModules, allowing another to take it's place. This can be used to import a set of modules from another channel while keeping the rest of the system on a stable release.
-
Updated to FreeType 2.7.1, including a new TrueType engine. The new engine replaces the Infinality engine which was the default in NixOS. The default font rendering settings are now provided by fontconfig-penultimate, replacing fontconfig-ultimate; the new defaults are less invasive and provide rendering that is more consistent with other systems and hopefully with each font designer's intent. Some system-wide configuration has been removed from the Fontconfig NixOS module where user Fontconfig settings are available.
-
ZFS/SPL have been updated to 0.7.0,
zfsUnstable, splUnstablehave therefore been removed. -
The
time.timeZoneoption now allows the valuenullin addition to timezone strings. This value allows changing the timezone of a system imperatively usingtimedatectl set-timezone. The default timezone is still UTC. -
Nixpkgs overlays may now be specified with a file as well as a directory. The value of
<nixpkgs-overlays>may be a file, and~/.config/nixpkgs/overlays.nixcan be used instead of the~/.config/nixpkgs/overlaysdirectory.See the overlays chapter of the Nixpkgs manual for more details.
-
Definitions for
/etc/hostscan now be specified declaratively withnetworking.hosts. -
Two new options have been added to the installer loader, in addition to the default having changed. The kernel log verbosity has been lowered to the upstream default for the default options, in order to not spam the console when e.g. joining a network.
This therefore leads to adding a new
debugoption to set the log level to the previous verbose mode, to make debugging easier, but still accessible easily.Additionally a
copytoramoption has been added, which makes it possible to remove the install medium after booting. This allows tethering from your phone after booting from it. -
services.gitlab-runner.configOptionshas been added to specify the configuration of gitlab-runners declaratively. -
services.jenkins.pluginshas been added to install plugins easily, this can be generated with jenkinsPlugins2nix. -
services.postfix.confighas been added to specify the main.cf with NixOS options. Additionally other options have been added to the postfix module and has been improved further. -
The GitLab package and module have been updated to the latest 10.0 release.
-
The
systemd-bootboot loader now lists the NixOS version, kernel version and build date of all bootable generations. -
The dnscrypt-proxy service now defaults to using a random upstream resolver, selected from the list of public non-logging resolvers with DNSSEC support. Existing configurations can be migrated to this mode of operation by omitting the
services.dnscrypt-proxy.resolverNameoption or setting it to"random".