13 KiB
Release 22.11 (“Raccoon”, 2022.11/??)
Support is planned until the end of June 2023, handing over to 23.05.
Highlights
In addition to numerous new and upgraded packages, this release has the following highlights:
-
During cross-compilation, tests are now executed if the test suite can be executed by the build platform. This is the case when doing “native” cross-compilation where the build and host platforms are largely the same, but the nixpkgs' cross compilation infrastructure is used, e.g.
pkgsStaticandpkgsLLVM. Another possibility is that the build platform is a superset of the host platform, e.g. when cross-compiling fromx86_64-unknown-linuxtoi686-unknown-linux. The predicate gating test suite execution is the newly addedcanExecutepredicate: You can e.g. check ifstdenv.buildPlatformcan execute binaries built forstdenv.hostPlatform(i.e. produced bystdenv.cc) by evaluatingstdenv.buildPlatform.canExecute stdenv.hostPlatform. -
The
nixpkgs.hostPlatformandnixpkgs.buildPlatformoptions have been added. These cover and override thenixpkgs.{system,localSystem,crossSystem}options.hostPlatformis the platform or "system" string of the NixOS system described by the configuration.buildPlatformis the platform that is responsible for building the NixOS configuration. It defaults to thehostPlatform, for a non-cross build configuration. To cross compile, setbuildPlatformto a different value.
The new options convey the same information, but with fewer options, and following the Nixpkgs terminology.
The existing options
nixpkgs.{system,localSystem,crossSystem}have not been formally deprecated, to allow for evaluation of the change and to allow for a transition period so that in time the ecosystem can switch without breaking compatibility with any supported NixOS release. -
emacsenables native compilation which means:- emacs packages from nixpkgs, builtin or not, will do native compilation ahead of time so you can enjoy the benefit of native compilation without compiling them on you machine;
- emacs packages from somewhere else, e.g.
package-install, will do asynchronously deferred native compilation. If you do not want this, maybe to avoid CPU consumption for compilation, you can use(setq native-comp-deferred-compilation nil)to disable it while still enjoy the benefit of native compilation for packages from nixpkgs.
-
nixos-generate-confignow generates configurations that can be built in pure mode. This is achieved by setting the newnixpkgs.hostPlatformoption.You may have to unset the
systemparameter inlib.nixosSystem, or similarly remove definitions of thenixpkgs.{system,localSystem,crossSystem}options.Alternatively, you can remove the
hostPlatformline and use NixOS like you would in NixOS 22.05 and earlier. -
PHP now defaults to PHP 8.1, updated from 8.0.
-
Cinnamon has been updated to 5.4.
-
OpenSSL now defaults to OpenSSL 3, updated from 1.1.1.
-
hardware.nvidiahas a new optionopenthat can be used to opt in the opensource version of NVIDIA kernel driver. Note that the driver's support for GeForce and Workstation GPUs is still alpha quality, see NVIDIA Releases Open-Source GPU Kernel Modules for the official announcement.
New Services
-
appvm, Nix based app VMs. Available as virtualisation.appvm.
-
syncstorage-rs, a self-hostable sync server for Firefox. Available as services.firefox-syncserver.
-
dragonflydb, a modern replacement for Redis and Memcached. Available as services.dragonflydb.
-
Komga, a free and open source comics/mangas media server. Available as services.komga.
-
HBase cluster, a distributed, scalable, big data store. Available as services.hadoop.hbase.
-
infnoise, a hardware True Random Number Generator dongle. Available as services.infnoise.
-
kanata, a tool to improve keyboard comfort and usability with advanced customization. Available as services.kanata.
-
persistent-evdev, a daemon to add virtual proxy devices that mirror a physical input device but persist even if the underlying hardware is hot-plugged. Available as services.persistent-evdev.
-
schleuder, a mailing list manager with PGP support. Enable using services.schleuder.
-
expressvpn, the CLI client for ExpressVPN. Available as services.expressvpn.
-
Grafana Tempo, a distributed tracing store. Available as services.tempo.
-
Patroni, a template for PostgreSQL HA with ZooKeeper, etcd or Consul. Available as services.patroni.
Backward Incompatibilities
-
The
isCompatiblepredicate checking CPU compatibility is no longer exposed by the platform sets generated usinglib.systems.elaborate. In most cases you will want to use the newcanExecutepredicate instead which also considers the kernel / syscall interface. It is briefly described in the release's highlights section.lib.systems.parse.isCompatiblestill exists, but has changed semantically: Architectures with differing endianness modes are no longer considered compatible. -
ngrokhas been upgraded from 2.3.40 to 3.0.4. Please see the upgrade guide and changelog. Notably, breaking changes are that the config file format has changed and support for single hypen arguments was dropped. -
i18n.supportedLocalesis now by default only generated with the locales set ini18n.defaultLocaleandi18n.extraLocaleSettings. This got partially copied over from the minimal profile and reduces the final system size by up to 200MB. If you require all locales installed set the option to[ "all" ]. -
The
isPowerPCpredicate, found onplatformattrsets (hostPlatform,buildPlatform,targetPlatform, etc) has been removed in order to reduce confusion. The predicate was was defined such that it matches only the 32-bit big-endian members of the POWER/PowerPC family, despite having a name which would imply a broader set of systems. If you were using this predicate, you can replacefoo.isPowerPCwith(with foo; isPower && is32bit && isBigEndian). -
The
fetchgitfetcher now uses cone mode by default for sparse checkouts. Non-cone mode can be enabled by passingnonConeMode = true, but note that non-cone mode is deprecated and this option may be removed alongside a future Git update without notice. -
bsp-layoutno longer uses the commandcycleto switch to other window layouts, as it got replaced by the commandspreviousandnext. -
The Barco ClickShare driver/client package
pkgs.clickshare-csc1and the optionprograms.clickshare-csc1.enablehave been removed, as it requiresqt4, which reached its end-of-life 2015 and will no longer be supported by nixpkgs. According to Barco many of their base unit models can be used with Google Chrome and the Google Cast extension. -
services.hbasehas been renamed toservices.hbase-standalone. For production HBase clusters, useservices.hadoop.hbaseinstead. -
PHP 7.4 is no longer supported due to upstream not supporting this version for the entire lifecycle of the 22.11 release.
-
pkgs.cosigndoes not provide thecosignedbinary anymore. -
riak package removed along with
services.riakmodule, due to lack of maintainer to update the package. -
xow package removed along with the
hardware.xowmodule, due to the project being deprecated in favor ofxone, which is available via thehardware.xonemodule. -
virtlyst package and
services.virtlystmodule removed, due to lack of maintainers. -
The
services.graphite.apiandservices.graphite.beaconNixOS options, and thepython3.pkgs.graphite_api,python3.pkgs.graphite_beaconandpython3.pkgs.influxgraphpackages, have been removed due to lack of upstream maintenance. -
The
meta.mainProgramattribute of packages inwineWowPackagesnow defaults to"wine64". -
(Neo)Vim can not be configured with
configure.pathogenanymore to reduce maintainance burden. Useconfigure.packagesinstead. -
k3sno longer supports docker as runtime due to upstream dropping support.
Other Notable Changes
-
The
xplrpackage has been updated from 0.18.0 to 0.19.0, which brings some breaking changes. See the upstream release notes for more details. -
github-runnergained support for ephemeral runners and registrations using a personal access token (PAT) instead of a registration token. Seeservices.github-runner.ephemeralandservices.github-runner.tokenFilefor details. -
A new module was added for the Saleae Logic device family, providing the options
hardware.saleae-logic.enableandhardware.saleae-logic.package. -
The Redis module now disables RDB persistence when
services.redis.servers.<name>.save = []instead of using the Redis default. -
Neo4j was updated from version 3 to version 4. See this migration guide on how to migrate your Neo4j instance.
-
Matrix Synapse now requires entries in the
state_group_edgestable to be unique, in order to prevent accidentally introducing duplicate information (for example, because a database backup was restored multiple times). If your Synapse database already has duplicate rows in this table, this could fail with an error and require manual remediation. -
dockerTools.buildImagedeprecates the misunderstoodcontentsparameter, in favor ofcopyToRoot. UsecopyToRoot = buildEnv { ... };or similar if you intend to add packages to/bin. -
memtest86+ was updated from 5.00-coreboot-002 to 6.00-beta2. It is now the upstream version from https://www.memtest.org/, as coreboot's fork is no longer available.
-
The udisks2 service, available at
services.udisks2.enable, is now disabled by default. It will automatically be enabled through services and desktop environments as needed. This also means that polkit will now actually be disabled by default. The default forsecurity.polkit.enablewas already flipped in the previous release, but udisks2 being enabled by default re-enabled it. -
Add udev rules for the Teensy family of microcontrollers.
-
The
pass-secret-servicepackage now includes systemd units from upstream, so adding it to the NixOSservices.dbus.packagesoption will make it start automatically as a systemd user service when an application tries to talk to the libsecret D-Bus API. -
There is a new module for AMD SEV CPU functionality, which grants access to the hardware.
-
There is a new module for the
thunarprogram (the Xfce file manager), which depends on thexfconfdbus service, and also has a dbus service and a systemd unit. The optionservices.xserver.desktopManager.xfce.thunarPluginshas been renamed toprograms.thunar.plugins, and in a future release it may be removed. -
There is a new module for the
xfconfprogram (the Xfce configuration storage system), which has a dbus service. -
The
nomadpackage now defaults to 1.3, which no longer has a downgrade path to releases 1.2 or older.