GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
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.xrandrHeads
now 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-0
output to be the primary head, even thoughHDMI-0
is the first head in the list. -
The handling of SSL in the
services.nginx
module has been cleaned up, renaming the misnamedenableSSL
toonlySSL
which reflects its original intention. This is not to be used with the already existingforceSSL
which 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 theenableSSL
option to keep the previous behaviour.Another
addSSL
option has been introduced to configure both a non-SSL virtual host and an SSL virtual host with the same configuration.Options to configure
resolver
options andupstream
blocks have been introduced. See their information for further details.The
port
option has been replaced by a more genericlisten
option 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.
enp0s3
toens3
.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-what
tool either returnsqemu
orkvm
and has interface names used in any part of its NixOS configuration, in particular if a static network configuration withnetworking.interfaces
is used.Before rebooting affected machines, please ensure:
-
Change the interface names in your NixOS configuration. The first interface will be called
ens3
, the second oneens8
and starting from there incremented by 1. -
After changing the interface names, rebuild your system with
nixos-rebuild boot
to 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
stateVersion
is changed to 17.09 or higher. ForstateVersion = "17.03"
or lower the old behavior is preserved.-
The
postgres
default version was changed from 9.5 to 9.6. -
The
postgres
superuser name has changed fromroot
topostgres
to more closely follow what other Linux distributions are doing. -
The
postgres
defaultdataDir
has changed from/var/db/postgres
to/var/lib/postgresql/$psqlSchema
where $psqlSchema is 9.6 for example. -
The
mysql
defaultdataDir
has changed from/var/mysql
to/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
package
toradicale2
, which is done automatically whenstateVersion
is 17.09 or higher. TheextraArgs
option has been added to allow passing the data migration arguments specified in the instructions; see theradicale.nix
NixOS test for an example migration.
-
-
The
aiccu
package was removed. This is due to SixXS sunsetting its IPv6 tunnel. -
The
fanctl
package andfan
module have been removed due to the developers not upstreaming their iproute2 patches and lagging with compatibility to recent iproute2 versions. -
Top-level
idea
package 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.sqlite
which will be automatically recreated. -
The
ipfs
service now doesn't ignore thedataDir
option 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
caddy
service was previously using an extra.caddy
directory in the data directory specified with thedataDir
option. The contents of the.caddy
directory are now expected to be in thedataDir
. -
The
ssh-agent
user service is not started by default anymore. Useprograms.ssh.startAgent
to enable it if needed. There is also a newprograms.gnupg.agent
module that creates agpg-agent
user service. It can also serve as a SSH agent ifenableSSHSupport
is set. -
The
services.tinc.networks.<name>.listenAddress
option 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>.bindToAddress
instead. Refer to the description of the options for more details. -
tlsdate
package and module were removed. This is due to the project being dead and not building with openssl 1.1. -
wvdial
package 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.syncserver
now 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
compiz
window manager and package was removed. The system support had been broken for several years. -
Touchpad support should now be enabled through
libinput
assynaptics
is 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.mysql
now has declarative configuration of databases and users with theensureDatabases
andensureUsers
options.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
root
user with a password, you will need to addroot
user 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.mysqlBackup
now works by default without any user setup, including for users other thanmysql
.By default, the
mysql
user is no longer the user which performs the backup. Instead a system accountmysqlbackup
is used.The
mysqlBackup
service is also now using systemd timers instead ofcron
.Therefore, the
services.mysqlBackup.period
option 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-backup
thensystemctl status mysql-backup
. -
Templated systemd services e.g
container@name
are now handled currectly when switching to a new configuration, resulting in them being reloaded. -
Steam: the
newStdcpp
parameter 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, splUnstable
have therefore been removed. -
The
time.timeZone
option now allows the valuenull
in 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.nix
can be used instead of the~/.config/nixpkgs/overlays
directory.See the overlays chapter of the Nixpkgs manual for more details.
-
Definitions for
/etc/hosts
can 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
debug
option to set the log level to the previous verbose mode, to make debugging easier, but still accessible easily.Additionally a
copytoram
option 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.configOptions
has been added to specify the configuration of gitlab-runners declaratively. -
services.jenkins.plugins
has been added to install plugins easily, this can be generated with jenkinsPlugins2nix. -
services.postfix.config
has 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-boot
boot 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.resolverName
option or setting it to"random"
.