1# Release 17.09 ("Hummingbird", 2017/09/??) {#sec-release-17.09}
2
3## Highlights {#sec-release-17.09-highlights}
4
5In addition to numerous new and upgraded packages, this release has the following highlights:
6
7- 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.
8
9- 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.
10
11- 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:
12
13 ```nix
14 {
15 services.xserver.xrandrHeads = [
16 "HDMI-0"
17 {
18 output = "DVI-0";
19 primary = true;
20 monitorConfig = ''
21 Option "Rotate" "right"
22 '';
23 }
24 ];
25 }
26 ```
27
28 This will set the `DVI-0` output to be the primary head, even though `HDMI-0` is the first head in the list.
29
30- The handling of SSL in the `services.nginx` module has been cleaned up, renaming the misnamed `enableSSL` to `onlySSL` which reflects its original intention. This is not to be used with the already existing `forceSSL` 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 the `enableSSL` option to keep the previous behaviour.
31
32 Another `addSSL` option has been introduced to configure both a non-SSL virtual host and an SSL virtual host with the same configuration.
33
34 Options to configure `resolver` options and `upstream` blocks have been introduced. See their information for further details.
35
36 The `port` option has been replaced by a more generic `listen` option which makes it possible to specify multiple addresses, ports and SSL configs dependant on the new SSL handling mentioned above.
37
38## New Services {#sec-release-17.09-new-services}
39
40The following new services were added since the last release:
41
42- `config/fonts/fontconfig-penultimate.nix`
43
44- `config/fonts/fontconfig-ultimate.nix`
45
46- `config/terminfo.nix`
47
48- `hardware/sensor/iio.nix`
49
50- `hardware/nitrokey.nix`
51
52- `hardware/raid/hpsa.nix`
53
54- `programs/browserpass.nix`
55
56- `programs/gnupg.nix`
57
58- `programs/qt5ct.nix`
59
60- `programs/slock.nix`
61
62- `programs/thefuck.nix`
63
64- `security/auditd.nix`
65
66- `security/lock-kernel-modules.nix`
67
68- `service-managers/docker.nix`
69
70- `service-managers/trivial.nix`
71
72- `services/admin/salt/master.nix`
73
74- `services/admin/salt/minion.nix`
75
76- `services/audio/slimserver.nix`
77
78- `services/cluster/kubernetes/default.nix`
79
80- `services/cluster/kubernetes/dns.nix`
81
82- `services/cluster/kubernetes/dashboard.nix`
83
84- `services/continuous-integration/hail.nix`
85
86- `services/databases/clickhouse.nix`
87
88- `services/databases/postage.nix`
89
90- `services/desktops/gnome3/gnome-disks.nix`
91
92- `services/desktops/gnome3/gpaste.nix`
93
94- `services/logging/SystemdJournal2Gelf.nix`
95
96- `services/logging/heartbeat.nix`
97
98- `services/logging/journalwatch.nix`
99
100- `services/logging/syslogd.nix`
101
102- `services/mail/mailhog.nix`
103
104- `services/mail/nullmailer.nix`
105
106- `services/misc/airsonic.nix`
107
108- `services/misc/autorandr.nix`
109
110- `services/misc/exhibitor.nix`
111
112- `services/misc/fstrim.nix`
113
114- `services/misc/gollum.nix`
115
116- `services/misc/irkerd.nix`
117
118- `services/misc/jackett.nix`
119
120- `services/misc/radarr.nix`
121
122- `services/misc/snapper.nix`
123
124- `services/monitoring/osquery.nix`
125
126- `services/monitoring/prometheus/collectd-exporter.nix`
127
128- `services/monitoring/prometheus/fritzbox-exporter.nix`
129
130- `services/network-filesystems/kbfs.nix`
131
132- `services/networking/dnscache.nix`
133
134- `services/networking/fireqos.nix`
135
136- `services/networking/iwd.nix`
137
138- `services/networking/keepalived/default.nix`
139
140- `services/networking/keybase.nix`
141
142- `services/networking/lldpd.nix`
143
144- `services/networking/matterbridge.nix`
145
146- `services/networking/squid.nix`
147
148- `services/networking/tinydns.nix`
149
150- `services/networking/xrdp.nix`
151
152- `services/security/shibboleth-sp.nix`
153
154- `services/security/sks.nix`
155
156- `services/security/sshguard.nix`
157
158- `services/security/torify.nix`
159
160- `services/security/usbguard.nix`
161
162- `services/security/vault.nix`
163
164- `services/system/earlyoom.nix`
165
166- `services/system/saslauthd.nix`
167
168- `services/web-apps/nexus.nix`
169
170- `services/web-apps/pgpkeyserver-lite.nix`
171
172- `services/web-apps/piwik.nix`
173
174- `services/web-servers/lighttpd/collectd.nix`
175
176- `services/web-servers/minio.nix`
177
178- `services/x11/display-managers/xpra.nix`
179
180- `services/x11/xautolock.nix`
181
182- `tasks/filesystems/bcachefs.nix`
183
184- `tasks/powertop.nix`
185
186## Backward Incompatibilities {#sec-release-17.09-incompatibilities}
187
188When upgrading from a previous release, please be aware of the following incompatible changes:
189
190- **In an Qemu-based virtualization environment, the network interface names changed from i.e. `enp0s3` to `ens3`.**
191
192 This is due to a kernel configuration change. The new naming is consistent with those of other Linux distributions with systemd. See [\#29197](https://github.com/NixOS/nixpkgs/issues/29197) for more information.
193
194 A machine is affected if the `virt-what` tool either returns `qemu` or `kvm` _and_ has interface names used in any part of its NixOS configuration, in particular if a static network configuration with `networking.interfaces` is used.
195
196 Before rebooting affected machines, please ensure:
197
198 - Change the interface names in your NixOS configuration. The first interface will be called `ens3`, the second one `ens8` and starting from there incremented by 1.
199
200 - 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 using `nixops`, deploy with `nixops deploy --force-reboot`.
201
202- The following changes apply if the `stateVersion` is changed to 17.09 or higher. For `stateVersion = "17.03"` or lower the old behavior is preserved.
203
204 - The `postgres` default version was changed from 9.5 to 9.6.
205
206 - The `postgres` superuser name has changed from `root` to `postgres` to more closely follow what other Linux distributions are doing.
207
208 - The `postgres` default `dataDir` has changed from `/var/db/postgres` to `/var/lib/postgresql/$psqlSchema` where \$psqlSchema is 9.6 for example.
209
210 - The `mysql` default `dataDir` has changed from `/var/mysql` to `/var/lib/mysql`.
211
212 - Radicale's default package has changed from 1.x to 2.x. Instructions to migrate can be found [ here ](http://radicale.org/1to2/). It is also possible to use the newer version by setting the `package` to `radicale2`, which is done automatically when `stateVersion` is 17.09 or higher. The `extraArgs` option has been added to allow passing the data migration arguments specified in the instructions; see the `radicale.nix` NixOS test for an example migration.
213
214- The `aiccu` package was removed. This is due to SixXS [ sunsetting](https://www.sixxs.net/main/) its IPv6 tunnel.
215
216- The `fanctl` package and `fan` module have been removed due to the developers not upstreaming their iproute2 patches and lagging with compatibility to recent iproute2 versions.
217
218- Top-level `idea` package collection was renamed. All JetBrains IDEs are now at `jetbrains`.
219
220- `flexget`'s state database cannot be upgraded to its new internal format, requiring removal of any existing `db-config.sqlite` which will be automatically recreated.
221
222- The `ipfs` service now doesn't ignore the `dataDir` 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 with
223
224 ```ShellSession
225 dataDir=<valueOfDataDir>
226 mv /var/lib/ipfs/.ipfs/* $dataDir
227 rmdir /var/lib/ipfs/.ipfs
228 ```
229
230- The `caddy` service was previously using an extra `.caddy` directory in the data directory specified with the `dataDir` option. The contents of the `.caddy` directory are now expected to be in the `dataDir`.
231
232- The `ssh-agent` user service is not started by default anymore. Use `programs.ssh.startAgent` to enable it if needed. There is also a new `programs.gnupg.agent` module that creates a `gpg-agent` user service. It can also serve as a SSH agent if `enableSSHSupport` is set.
233
234- 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, use `services.tinc.networks.<name>.bindToAddress` instead. Refer to the description of the options for more details.
235
236- `tlsdate` package and module were removed. This is due to the project being dead and not building with openssl 1.1.
237
238- `wvdial` package and module were removed. This is due to the project being dead and not building with openssl 1.1.
239
240- `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.
241
242- `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.
243
244- The `compiz` window manager and package was removed. The system support had been broken for several years.
245
246- Touchpad support should now be enabled through `libinput` as `synaptics` is now deprecated. See the option `services.xserver.libinput.enable`.
247
248- grsecurity/PaX support has been dropped, following upstream's decision to cease free support. See [ upstream's announcement](https://grsecurity.net/passing_the_baton.php) for more information. No complete replacement for grsecurity/PaX is available presently.
249
250- `services.mysql` now has declarative configuration of databases and users with the `ensureDatabases` and `ensureUsers` options.
251
252 These options will never delete existing databases and users, especially not when the value of the options are changed.
253
254 The MySQL users will be identified using [ Unix socket authentication](https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/). This authenticates the Unix user with the same name only, and that without the need for a password.
255
256 If you have previously created a MySQL `root` user _with a password_, you will need to add `root` user for unix socket authentication before using the new options. This can be done by running the following SQL script:
257
258 ```SQL
259 CREATE USER 'root'@'%' IDENTIFIED BY '';
260 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
261 FLUSH PRIVILEGES;
262
263 -- Optionally, delete the password-authenticated user:
264 -- DROP USER 'root'@'localhost';
265 ```
266
267- `services.mysqlBackup` now works by default without any user setup, including for users other than `mysql`.
268
269 By default, the `mysql` user is no longer the user which performs the backup. Instead a system account `mysqlbackup` is used.
270
271 The `mysqlBackup` service is also now using systemd timers instead of `cron`.
272
273 Therefore, the `services.mysqlBackup.period` option no longer exists, and has been replaced with `services.mysqlBackup.calendar`, which is in the format of [systemd.time(7)](https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events).
274
275 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.
276
277 You can check that backups still work by running `systemctl start mysql-backup` then `systemctl status mysql-backup`.
278
279- Templated systemd services e.g `container@name` are now handled correctly when switching to a new configuration, resulting in them being reloaded.
280
281- Steam: the `newStdcpp` parameter was removed and should not be needed anymore.
282
283- 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.
284
285## Other Notable Changes {#sec-release-17.09-notable-changes}
286
287- Modules can now be disabled by using [ disabledModules](https://nixos.org/nixpkgs/manual/#sec-replace-modules), 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.
288
289- 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.
290
291- ZFS/SPL have been updated to 0.7.0, `zfsUnstable, splUnstable` have therefore been removed.
292
293- The `time.timeZone` option now allows the value `null` in addition to timezone strings. This value allows changing the timezone of a system imperatively using `timedatectl set-timezone`. The default timezone is still UTC.
294
295- 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.
296
297 See the overlays chapter of the Nixpkgs manual for more details.
298
299- Definitions for `/etc/hosts` can now be specified declaratively with `networking.hosts`.
300
301- 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.
302
303 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.
304
305 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.
306
307- `services.gitlab-runner.configOptions` has been added to specify the configuration of gitlab-runners declaratively.
308
309- `services.jenkins.plugins` has been added to install plugins easily, this can be generated with jenkinsPlugins2nix.
310
311- `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.
312
313- The GitLab package and module have been updated to the latest 10.0 release.
314
315- The `systemd-boot` boot loader now lists the NixOS version, kernel version and build date of all bootable generations.
316
317- 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"`.