18 KiB
Release 21.11 (“?”, 2021.11/??)
In addition to numerous new and upgraded packages, this release has the following highlights:
- Support is planned until the end of June 2022, handing over to 22.05.
Highlights
-
PHP now defaults to PHP 8.0, updated from 7.4.
-
kOps now defaults to 1.21.0, which uses containerd as the default runtime.
-
python3now defaults to Python 3.9, updated from Python 3.8. -
PostgreSQL now defaults to major version 13.
New Services
-
btrbk, a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as services.btrbk.
-
clipcat, an X11 clipboard manager written in Rust. Available at [services.clipcat](options.html#o pt-services.clipcat.enable).
-
geoipupdate, a GeoIP database updater from MaxMind. Available as services.geoipupdate.
-
Kea, ISCs 2nd generation DHCP and DDNS server suite. Available at services.kea.
-
sourcehut, a collection of tools useful for software development. Available as services.sourcehut.
-
ucarp, an userspace implementation of the Common Address Redundancy Protocol (CARP). Available as networking.ucarp.
-
Users of flashrom should migrate to programs.flashrom.enable and add themselves to the
flashromgroup to be able to access programmers supported by flashrom. -
vikunja, a to-do list app. Available as services.vikunja.
-
snapraid, a backup program for disk arrays. Available as snapraid.
-
Hockeypuck, a OpenPGP Key Server. Available as services.hockeypuck.
-
buildkite-agent-metrics, a command-line tool for collecting Buildkite agent metrics, now has a Prometheus exporter available as services.prometheus.exporters.buildkite-agent.
-
influxdb-exporter a Prometheus exporter that exports metrics received on an InfluxDB compatible endpoint is now available as services.prometheus.exporters.influxdb.
-
mx-puppet-discord, a discord puppeting bridge for matrix. Available as services.mx-puppet-discord.
-
MeshCentral, a remote administration service ("TeamViewer but self-hosted and with more features") is now available with a package and a module: services.meshcentral.enable
-
moonraker, an API web server for Klipper. Available as moonraker.
-
influxdb2, a Scalable datastore for metrics, events, and real-time analytics. Available as services.influxdb2.
-
isso, a commenting server similar to Disqus. Available as isso
-
fluidd, a Klipper web interface for managing 3d printers using moonraker. Available as fluidd.
-
sx, a simple alternative to both xinit and startx for starting a Xorg server. Available as services.xserver.displayManager.sx
Backward Incompatibilities
-
The
paperlessmodule and package have been removed. All users should migrate to the successorpaperless-nginstead. The Paperless project has been archived and advises all users to usepaperless-nginstead.Users can use the
services.paperless-ngmodule as a replacement while noting the following incompatibilities:services.paperless.ocrLanguageshas no replacement. Users should migrate toservices.paperless-ng.extraConfiginstead:
{ services.paperless-ng.extraConfig = { # Provide languages as ISO 639-2 codes # separated by a plus (+) sign. # https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes PAPERLESS_OCR_LANGUAGE = "deu+eng+jpn"; # German & English & Japanse }; }-
If you previously specified
PAPERLESS_CONSUME_MAIL_*settings inservices.paperless.extraConfigyou should remove those options now. You now must define those settings in the admin interface of paperless-ng. -
Option
services.paperless.manageno longer exists. Use the script at${services.paperless-ng.dataDir}/paperless-ng-manageinstead. Note that this script only exists after thepaperless-ngservice has been started at least once. -
After switching to the new system configuration you should run the Django management command to reindex your documents and optionally create a user, if you don't have one already.
To do so, enter the data directory (the value of
services.paperless-ng.dataDir,/var/lib/paperlessby default), switch to the paperless user and execute the management command like below:$ cd /var/lib/paperless $ su paperless -s /bin/sh $ ./paperless-ng-manage document_index reindex # if not already done create a user account, paperless-ng requires a login $ ./paperless-ng-manage createsuperuser Username (leave blank to use 'paperless'): my-user-name Email address: me@example.com Password: ********** Password (again): ********** Superuser created successfully.
-
The
staticjinjapackage has been upgraded from 1.0.4 to 4.1.0 -
The
erigonethereum node has moved to a new database format in2021-05-04, and requires a full resync -
services.geoip-updaterwas broken and has been replaced by services.geoipupdate. -
PHP 7.3 is no longer supported due to upstream not supporting this version for the entire lifecycle of the 21.11 release.
-
Those making use of
buildBazelPackagewill need to regenerate the fetch hashes (preferred), or setfetchConfigured = false;. -
consulwas upgraded to a new major release with breaking changes, see upstream changelog. -
fsharp41 has been removed in preference to use the latest dotnet-sdk
-
The following F#-related packages have been removed for being unmaintaned. Please use
fetchNuGetfor specific packages.- ExtCore
- Fake
- Fantomas
- FsCheck
- FsCheck262
- FsCheckNunit
- FSharpAutoComplete
- FSharpCompilerCodeDom
- FSharpCompilerService
- FSharpCompilerTools
- FSharpCore302
- FSharpCore3125
- FSharpCore4001
- FSharpCore4117
- FSharpData
- FSharpData225
- FSharpDataSQLProvider
- FSharpFormatting
- FsLexYacc
- FsLexYacc706
- FsLexYaccRuntime
- FsPickler
- FsUnit
- Projekt
- Suave
- UnionArgParser
- ExcelDnaRegistration
- MathNetNumerics
-
programs.x2goserveris nowservices.x2goserver -
The following dotnet-related packages have been removed for being unmaintaned. Please use
fetchNuGetfor specific packages.- Autofac
- SystemValueTuple
- MicrosoftDiaSymReader
- MicrosoftDiaSymReaderPortablePdb
- SystemCollectionsImmutable
- SystemCollectionsImmutable131
- SystemReflectionMetadata
- NUnit350
- Deedle
- ExcelDna
- GitVersionTree
- NDeskOptions
-
The
antlrpackage now defaults to the 4.x release instead of the old 2.7.7 version. -
The
pulseeffectspackage updated to version 4.x and renamed toeasyeffects. -
The
libwnckpackage now defaults to the 3.x release instead of the old 2.31.0 version. -
The
bitwarden_rspackages and modules were renamed tovaultwardenfollowing upstream. More specifically,-
pkgs.bitwarden_rs,pkgs.bitwarden_rs-sqlite,pkgs.bitwarden_rs-mysqlandpkgs.bitwarden_rs-postgresqlwere renamed topkgs.vaultwarden,pkgs.vaultwarden-sqlite,pkgs.vaultwarden-mysqlandpkgs.vaultwarden-postgresql, respectively.- Old names are preserved as aliases for backwards compatibility, but may be removed in the future.
- The
bitwarden_rsexecutable was also renamed tovaultwardenin all packages.
-
pkgs.bitwarden_rs-vaultwas renamed topkgs.vaultwarden-vault.pkgs.bitwarden_rs-vaultis preserved as an alias for backwards compatibility, but may be removed in the future.- The static files were moved from
/usr/share/bitwarden_rsto/usr/share/vaultwarden.
-
The
services.bitwarden_rsconfig module was renamed toservices.vaultwarden.services.bitwarden_rsis preserved as an alias for backwards compatibility, but may be removed in the future.
-
systemd.services.bitwarden_rs,systemd.services.backup-bitwarden_rsandsystemd.timers.backup-bitwarden_rswere renamed tosystemd.services.vaultwarden,systemd.services.backup-vaultwardenandsystemd.timers.backup-vaultwarden, respectively.- Old names are preserved as aliases for backwards compatibility, but may be removed in the future.
-
users.users.bitwarden_rsandusers.groups.bitwarden_rswere renamed tousers.users.vaultwardenandusers.groups.vaultwarden, respectively. -
The data directory remains located at
/var/lib/bitwarden_rs, for backwards compatibility.
-
-
yggdrasilwas upgraded to a new major release with breaking changes, see upstream changelog. -
icingaweb2was upgraded to a new release which requires a manual database upgrade, see upstream changelog. -
The
isabellepackage has been upgraded from 2020 to 2021 -
the
mingw-64package has been upgraded from 6.0.0 to 9.0.0 -
tt-rsswas upgraded to the commit on 2021-06-21, which has breaking changes. If you useservices.tt-rss.extraConfigyou should migrate to theputenv-style configuration. See this Discourse post in the tt-rss forums for more details. -
The following Visual Studio Code extensions were renamed to keep the naming convention uniform.
bbenoist.Nix->bbenoist.nixCoenraadS.bracket-pair-colorizer->coenraads.bracket-pair-colorizergolang.Go->golang.go
-
services.uptimednow uses/var/lib/uptimedas its stateDirectory instead of/var/spool/uptimed. Make sure to move all files to the new directory. -
Deprecated package aliases in
emacs.pkgs.*have been removed. These aliases were remnants of the old Emacs package infrastructure. We now use exact upstream names wherever possible. -
programs.neovim.runtimeswitched to alinkFarminternally, making it impossible to use wildcards in thesourceargument. -
The
openrazerandopenrazer-daemonpackages as well as thehardware.openrazermodule now require users to be members of theopenrazergroup instead ofplugdev. With this change, users no longer need be granted the entire set ofplugdevgroup permissions, which can include permissions other than those required byopenrazer. This is desirable from a security point of view. The settingharware.openrazer.userscan be used to add users to theopenrazergroup. -
The fontconfig service's dpi option has been removed. Fontconfig should use Xft settings by default so there's no need to override one value in multiple places. The user can set DPI via ~/.Xresources properly, or at the system level per monitor, or as a last resort at the system level with
services.xserver.dpi. -
The
yambarpackage has been split intoyambarandyambar-wayland, corresponding to the xorg and wayland backend respectively. Please switch toyambar-waylandif you are on wayland. -
The
services.miniomodule gained an additional optionconsoleAddress, that configures the address and port the web UI is listening, it defaults to:9001. To be able to access the web UI this port needs to be opened in the firewall. -
The
varnishpackage was upgraded from 6.3.x to 6.5.x.varnish60for the last LTS release is also still available. -
The
kubernetespackage was upgraded to 1.22. Thekubernetes.apiserver.kubeletHttpsoption was removed and HTTPS is always used. -
The attribute
linuxPackages_latest_hardenedwas dropped because the hardened patches lag behind the upstream kernel which made version bumps harder. If you want to use a hardened kernel, please pin it explicitly with a versioned attribute such aslinuxPackages_5_10_hardened. -
The
nomadpackage now defaults to a 1.1.x release instead of 1.0.x
Other Notable Changes
-
The setting
services.openssh.logLevel"VERBOSE""INFO". This brings NixOS in line with upstream and other Linux distributions, and reduces log spam on servers due to bruteforcing botnets.However, if
services.fail2ban.enableistrue, thefail2banwill override the verbosity to"VERBOSE", so thatfail2bancan observe the failed login attempts from the SSH logs. -
Sway: The terminal emulator
rxvt-unicodeis no longer installed by default viaprograms.sway.extraPackages. The current default configuration usesalacritty(and soonfoot) so this is only an issue when using a customized configuration and not installingrxvt-unicodeexplicitly. -
python3now defaults to Python 3.9. Python 3.9 introduces many deprecation warnings, please look at the What's New In Python 3.9 post for more information. -
qtilehase been updated from '0.16.0' to '0.18.0', please check qtile changelog for changes. -
The
claws-mailpackage now references the new GTK+ 3 release branch, major version 4. To use the GTK+ 2 releases, one can install theclaws-mail-gtk2package. -
The wordpress module provides a new interface which allows to use different webservers with the new option
services.wordpress.webserver. Currentlyhttpdandnginxare supported. The definitions of wordpress sites should now be set inservices.wordpress.sites.Sites definitions that use the old interface are automatically migrated in the new option. This backward compatibility will be removed in 22.05.
-
The order of NSS (host) modules has been brought in line with upstream recommendations:
- The
myhostnamemodule is placed before theresolve(optional) anddnsentries, but afterfile(to allow overriding via/etc/hosts/networking.extraHosts, and prevent ISPs with catchall-DNS resolvers from hijacking.localhostdomains) - The
mymachinesmodule, which provides hostname resolution for local containers (registered withsystemd-machined) is placed to the front, to make sure its mappings are preferred over other resolvers. - If systemd-networkd is enabled, the
resolvemodule is placed beforefilesandmyhostname, as it provides the same logic internally, with caching. - The
mdns(_minimal)module has been updated to the new priorities.
If you use your own NSS host modules, make sure to update your priorities according to these rules:
- NSS modules which should be queried before
resolvedDNS resolution should use mkBefore. - NSS modules which should be queried after
resolved,filesandmyhostname, but beforednsshould use the default priority - NSS modules which should come after
dnsshould use mkAfter.
- The
-
The networking.wireless.iwd module has a new networking.wireless.iwd.settings option.
-
The services.syncoid.enable module now properly drops ZFS permissions after usage. Before it delegated permissions to whole pools instead of datasets and didn't clean up after execution. You can manually look this up for your pools by running
zfs allow your-pool-nameand usezfs unallow syncoid your-pool-nameto clean this up. -
Zfs:
latestCompatibleLinuxPackagesis now exported on the zfs package. One can useboot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;to always track the latest compatible kernel with a given version of zfs. -
Nginx will use the value of
sslTrustedCertificateif provided for a virtual host, even ifenableACMEis set. This is useful for providers not using the same certificate to sign OCSP responses and server certificates.