docs: nixos release notes (revise code blocks) docs: nixos release notes (fix opt links outside of code blocks) docs: nixos release notes (fix opt links inside of code blocks) went fishing with: ```console rg -A1 \ --multiline \ --multiline-dotall \ '<programlisting>[^</programlisting>]+' \ | rg linkend ``` docs: nixos release notes (prettier) docs: nixos release notes (fix zonefile codeblocks) docs: nixos release notes (restore admonition from prettier destriction) docs: nixos release notes (recreate xml files) docs: nixos release notes (fix trnslation error md -> xml) admonition with a title seem not to work docs: nixos release notes (fix code block indentation) docs: nixos release notes (diff after converting with https://github.com/NixOS/nixpkgs/pull/127270) docs: nixos release notes (fix remaingin '???') Those where not catched i a previous iteration since they didn't satisfy the then presumed search regex `#opt-.*` doc: nixos release notes make docbook/md conversion consistent
15 KiB
Release 18.09 ("Jellyfish", 2018/10/05)
Highlights
In addition to numerous new and upgraded packages, this release has the following notable updates:
-
End of support is planned for end of April 2019, handing over to 19.03.
-
Platform support: x86_64-linux and x86_64-darwin as always. Support for aarch64-linux is as with the previous releases, not equivalent to the x86-64-linux release, but with efforts to reach parity.
-
Nix has been updated to 2.1; see its release notes.
-
Core versions: linux: 4.14 LTS (unchanged), glibc: 2.26 → 2.27, gcc: 7 (unchanged), systemd: 237 → 239.
-
Desktop version changes: gnome: 3.26 → 3.28, (KDE) plasma-desktop: 5.12 → 5.13.
Notable changes and additions for 18.09 include:
-
Support for wrapping binaries using
firejailhas been added throughprograms.firejail.wrappedBinaries.For example
{ programs.firejail = { enable = true; wrappedBinaries = { firefox = "${lib.getBin pkgs.firefox}/bin/firefox"; mpv = "${lib.getBin pkgs.mpv}/bin/mpv"; }; }; }This will place
firefoxandmpvbinaries in the global path wrapped by firejail. -
User channels are now in the default
NIX_PATH, allowing users to use their personalnix-channeldefined channels innix-buildandnix-shellcommands, as well as in imports likeimport <mychannel>.For example
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgsunstable $ nix-channel --update $ nix-build '<nixpkgsunstable>' -A gitFull $ nix run -f '<nixpkgsunstable>' gitFull $ nix-instantiate -E '(import <nixpkgsunstable> {}).gitFull'
New Services
A curated selection of new services that were added since the last release:
-
The
services.cassandramodule has been reworked and was rewritten from scratch. The service has succeeding tests for the versions 2.1, 2.2, 3.0 and 3.11 of Apache Cassandra. -
There is a new
services.foundationdbmodule for deploying FoundationDB clusters. -
When enabled the
iproute2will copy the files expected by ip route (e.g.,rt_tables) in/etc/iproute2. This allows to write aliases for routing tables for instance. -
services.strongswan-swanctlis a modern replacement forservices.strongswan. You can use either one of them to setup IPsec VPNs but not both at the same time.services.strongswan-swanctluses the swanctl command which uses the modern vici Versatile IKE Configuration Interface. The deprecatedipseccommand used inservices.strongswanis using the legacy stroke configuration interface. -
The new
services.elasticsearch-curatorservice periodically curates or manages, your Elasticsearch indices and snapshots.
Every new services:
-
./config/xdg/autostart.nix -
./config/xdg/icons.nix -
./config/xdg/menus.nix -
./config/xdg/mime.nix -
./hardware/brightnessctl.nix -
./hardware/onlykey.nix -
./hardware/video/uvcvideo/default.nix -
./misc/documentation.nix -
./programs/firejail.nix -
./programs/iftop.nix -
./programs/sedutil.nix -
./programs/singularity.nix -
./programs/xss-lock.nix -
./programs/zsh/zsh-autosuggestions.nix -
./services/admin/oxidized.nix -
./services/backup/duplicati.nix -
./services/backup/restic.nix -
./services/backup/restic-rest-server.nix -
./services/cluster/hadoop/default.nix -
./services/databases/aerospike.nix -
./services/databases/monetdb.nix -
./services/desktops/bamf.nix -
./services/desktops/flatpak.nix -
./services/desktops/zeitgeist.nix -
./services/development/bloop.nix -
./services/development/jupyter/default.nix -
./services/hardware/lcd.nix -
./services/hardware/undervolt.nix -
./services/misc/clipmenu.nix -
./services/misc/gitweb.nix -
./services/misc/serviio.nix -
./services/misc/safeeyes.nix -
./services/misc/sysprof.nix -
./services/misc/weechat.nix -
./services/monitoring/datadog-agent.nix -
./services/monitoring/incron.nix -
./services/networking/dnsdist.nix -
./services/networking/freeradius.nix -
./services/networking/hans.nix -
./services/networking/morty.nix -
./services/networking/ndppd.nix -
./services/networking/ocserv.nix -
./services/networking/owamp.nix -
./services/networking/quagga.nix -
./services/networking/shadowsocks.nix -
./services/networking/stubby.nix -
./services/networking/zeronet.nix -
./services/security/certmgr.nix -
./services/security/cfssl.nix -
./services/security/oauth2_proxy_nginx.nix -
./services/web-apps/virtlyst.nix -
./services/web-apps/youtrack.nix -
./services/web-servers/hitch/default.nix -
./services/web-servers/hydron.nix -
./services/web-servers/meguca.nix -
./services/web-servers/nginx/gitweb.nix -
./virtualisation/kvmgt.nix -
./virtualisation/qemu-guest-agent.nix
Backward Incompatibilities
When upgrading from a previous release, please be aware of the following incompatible changes:
-
Some licenses that were incorrectly not marked as unfree now are. This is the case for:
-
cc-by-nc-sa-20: Creative Commons Attribution Non Commercial Share Alike 2.0
-
cc-by-nc-sa-25: Creative Commons Attribution Non Commercial Share Alike 2.5
-
cc-by-nc-sa-30: Creative Commons Attribution Non Commercial Share Alike 3.0
-
cc-by-nc-sa-40: Creative Commons Attribution Non Commercial Share Alike 4.0
-
cc-by-nd-30: Creative Commons Attribution-No Derivative Works v3.00
-
msrla: Microsoft Research License Agreement
-
-
The deprecated
services.cassandramodule has seen a complete rewrite. (See above.) -
lib.strictis removed. Usebuiltins.seqinstead. -
The
clementinepackage points now to the free derivation.clementineFreeis removed now andclementineUnfreepoints to the package which is bundled with the unfreelibspotifypackage. -
The
netcatpackage is now taken directly from OpenBSD'slibressl, instead of relying on Debian's fork. The new version should be very close to the old version, but there are some minor differences. Importantly, flags like -b, -q, -C, and -Z are no longer accepted by the nc command. -
The
services.docker-registry.extraConfigobject doesn't contain environment variables anymore. Instead it needs to provide an object structure that can be mapped onto the YAML configuration defined in thedocker/distributiondocs. -
gnucashhas changed from version 2.4 to 3.x. If you've been usinggnucash(version 2.4) instead ofgnucash26(version 2.6) you must open your Gnucash data file(s) withgnucash26and then save them to upgrade the file format. Then you may use your data file(s) with Gnucash 3.x. See the upgrade documentation. Gnucash 2.4 is still available under the attributegnucash24. -
services.mungenow runs as user (and group)mungeinstead of root. Make sure the key file is accessible to the daemon. -
dockerTools.buildImagenow usesnullas default value fortag, which indicates that the nix output hash will be used as tag. -
The ELK stack:
elasticsearch,logstashandkibanahas been upgraded from 2.* to 6.3.*. The 2.* versions have been unsupported since last year so they have been removed. You can still use the 5.* versions under the nameselasticsearch5,logstash5andkibana5.The elastic beats:
filebeat,heartbeat,metricbeatandpacketbeathave had the same treatment: they now target 6.3.* as well. The 5.* versions are available under the names:filebeat5,heartbeat5,metricbeat5andpacketbeat5The ELK-6.3 stack now comes with X-Pack by default. Since X-Pack is licensed under the Elastic License the ELK packages now have an unfree license. To use them you need to specify
allowUnfree = true;in your nixpkgs configuration.Fortunately there is also a free variant of the ELK stack without X-Pack. The packages are available under the names:
elasticsearch-oss,logstash-ossandkibana-oss. -
Options
boot.initrd.luks.devices.name.yubikey.ramfsMountPointboot.initrd.luks.devices.name.yubikey.storage.mountPointwere removed.luksroot.nixmodule never supported more than one YubiKey at a time anyway, hence those options never had any effect. You should be able to remove them from your config without any issues. -
stdenv.systemandsystemin nixpkgs now refer to the host platform instead of the build platform. For native builds this is not change, let alone a breaking one. For cross builds, it is a breaking change, andstdenv.buildPlatform.systemcan be used instead for the old behavior. They should be using that anyways for clarity. -
Groups
kvmandrenderare introduced now, as systemd requires them.
Other Notable Changes
-
dockerTools.pullImagerelies on image digest instead of image tag to download the image. Thesha256of a pulled image has to be updated. -
lib.attrNamesToStrhas been deprecated. Use more specific concatenation (lib.concat(Map)StringsSep) instead. -
lib.addErrorContextToAttrshas been deprecated. Usebuiltins.addErrorContextdirectly. -
lib.showValhas been deprecated. Uselib.traceSeqNinstead. -
lib.traceXMLValhas been deprecated. Uselib.traceValFn builtins.toXmlinstead. -
lib.traceXMLValMarkedhas been deprecated. Uselib.traceValFn (x: str + builtins.toXML x)instead. -
The
pkgsargument to NixOS modules can now be set directly usingnixpkgs.pkgs. Previously, only thesystem,configandoverlaysarguments could be used to influencepkgs. -
A NixOS system can now be constructed more easily based on a preexisting invocation of Nixpkgs. For example:
{ inherit (pkgs.nixos { boot.loader.grub.enable = false; fileSystems."/".device = "/dev/xvda1"; }) toplevel kernel initialRamdisk manual; }This benefits evaluation performance, lets you write Nixpkgs packages that depend on NixOS images and is consistent with a deployment architecture that would be centered around Nixpkgs overlays.
-
lib.traceValIfNothas been deprecated. Useif/then/elseandlib.traceValSeqinstead. -
lib.traceCallXmlhas been deprecated. Please complain if you use the function regularly. -
The attribute
lib.nixpkgsVersionhas been deprecated in favor oflib.version. Please refer to the discussion in NixOS/nixpkgs#39416 for further reference. -
lib.recursiveUpdateUntilwas not acting according to its specification. It has been fixed to act according to the docstring, and a test has been added. -
The module for
security.dhparamshas two new options now:security.dhparams.stateless-
Puts the generated Diffie-Hellman parameters into the Nix store instead of managing them in a stateful manner in
/var/lib/dhparams. security.dhparams.defaultBitSize-
The default bit size to use for the generated Diffie-Hellman parameters.
::: {.note} The path to the actual generated parameter files should now be queried using
config.security.dhparams.params.name.pathbecause it might be either in the Nix store or in a directory configured bysecurity.dhparams.path. :::::: {.note} For developers:
Module implementers should not set a specific bit size in order to let users configure it by themselves if they want to have a different bit size than the default (2048).
An example usage of this would be:
{ config, ... }: { security.dhparams.params.myservice = {}; environment.etc."myservice.conf".text = '' dhparams = ${config.security.dhparams.params.myservice.path} ''; }:::
-
networking.networkmanager.useDnsmasqhas been deprecated. Usenetworking.networkmanager.dnsinstead. -
The Kubernetes package has been bumped to major version 1.11. Please consult the release notes for details on new features and api changes.
-
The option
services.kubernetes.apiserver.admissionControlwas renamed toservices.kubernetes.apiserver.enableAdmissionPlugins. -
Recommended way to access the Kubernetes Dashboard is via HTTPS (TLS) Therefore; public service port for the dashboard has changed to 443 (container port 8443) and scheme to https.
-
The option
services.kubernetes.apiserver.addresswas renamed toservices.kubernetes.apiserver.bindAddress. Note that the default value has changed from 127.0.0.1 to 0.0.0.0. -
The option
services.kubernetes.apiserver.publicAddresswas not used and thus has been removed. -
The option
services.kubernetes.addons.dashboard.enableRBACwas renamed toservices.kubernetes.addons.dashboard.rbac.enable. -
The Kubernetes Dashboard now has only minimal RBAC permissions by default. If dashboard cluster-admin rights are desired, set
services.kubernetes.addons.dashboard.rbac.clusterAdminto true. On existing clusters, in order for the revocation of privileges to take effect, the current ClusterRoleBinding for kubernetes-dashboard must be manually removed:kubectl delete clusterrolebinding kubernetes-dashboard -
The
programs.screenmodule provides allows to configure/etc/screenrc, however the module behaved fairly counterintuitive as the config exists, but the package wasn't available. Since 18.09pkgs.screenwill be added toenvironment.systemPackages. -
The module
services.networking.hostapdnow uses WPA2 by default. -
s6Dns,s6Networking,s6LinuxUtilsands6PortableUtilsrenamed tos6-dns,s6-networking,s6-linux-utilsands6-portable-utilsrespectively. -
The module option
nix.useSandboxis now defaulted totrue. -
The config activation script of
nixos-rebuildnow reloads all user units for each authenticated user. -
The default display manager is now LightDM. To use SLiM set
services.xserver.displayManager.slim.enabletotrue. -
NixOS option descriptions are now automatically broken up into individual paragraphs if the text contains two consecutive newlines, so it's no longer necessary to use
</para><para>to start a new paragraph. -
Top-level
buildPlatform,hostPlatform, andtargetPlatformin Nixpkgs are deprecated. Please use their equivalents instdenvinstead:stdenv.buildPlatform,stdenv.hostPlatform, andstdenv.targetPlatform.