Wordpress bundles some non-essential plugins and themes, then pesters users to upgrade them. As we make the whole webroot readonly, it is not possible to trivially delete them. Instead we should have users explicitly install plugins via the existing nixos module.
19 KiB
Release 23.05 (“Stoat”, 2023.05/??)
Support is planned until the end of December 2023, handing over to 23.11.
Highlights
In addition to numerous new and upgraded packages, this release has the following highlights:
-
Cinnamon has been updated to 5.6, see the pull request for what is changed.
-
nixos-rebuildnow supports an extra--specialisationoption that can be used to change specialisation forswitchandtestcommands.
New Services
-
Akkoma, an ActivityPub microblogging server. Available as services.akkoma.
-
blesh, a line editor written in pure bash. Available as programs.bash.blesh.
-
webhook, a lightweight webhook server. Available as services.webhook.
-
cups-pdf-to-pdf, a pdf-generating cups backend based on cups-pdf. Available as services.printing.cups-pdf.
-
Cloudlog, a web-based Amateur Radio logging application. Available as services.cloudlog.
-
fzf, a command line fuzzyfinder. Available as programs.fzf.
-
gmediarender, a simple, headless UPnP/DLNA renderer. Available as services.gmediarender.
-
stevenblack-blocklist, A unified hosts file with base extensions for blocking unwanted websites. Available as networking.stevenblack.
-
goeland, an alternative to rss2email written in golang with many filters. Available as services.goeland.
-
atuin, a sync server for shell history. Available as services.atuin.
-
mmsd, a lower level daemon that transmits and recieves MMSes. Available as services.mmsd.
-
v2rayA, a Linux web GUI client of Project V which supports V2Ray, Xray, SS, SSR, Trojan and Pingtunnel. Available as services.v2raya.
-
ulogd, a userspace logging daemon for netfilter/iptables related logging. Available as services.ulogd.
-
photoprism, a AI-Powered Photos App for the Decentralized Web. Available as services.photoprism.
-
autosuspend, a python daemon that suspends a system if certain conditions are met, or not met.
Backward Incompatibilities
-
carnixandcratesIOhas been removed due to being unmaintained, use alternatives such as naersk and crate2nix instead. -
checkInputshave been renamed tonativeCheckInputs, because they behave the same asnativeBuildInputswhendoCheckis set.checkInputsnow denote a new type of dependencies, added tobuildInputswhendoCheckis set. As a rule of thumb,nativeCheckInputsare tools on$PATHused during the tests, andcheckInputsare libraries which are linked to executables built as part of the tests. Similarly,installCheckInputsare renamed tonativeInstallCheckInputs, corresponding tonativeBuildInputs, andinstallCheckInputsare a new type of dependencies added tobuildInputswhendoInstallCheckis set. (Note that this change will not cause breakage to derivations withstrictDepsunset, which are most packages except python, rust and go packages). -
borgbackupmodule now has an option for inhibiting system sleep while backups are running, defaulting to off (not inhibiting sleep), available asservices.borgbackup.jobs.<name>.inhibitsSleep. -
podmannow uses thenetavarknetwork stack. Users will need to delete all of their local containers, images, volumes, etc, by runningpodman system reset --forceonce before upgrading their systems. -
git-bughas been updated to at least version 0.8.0, which includes backwards incompatible changes. Thegit-bug-migrationpackage can be used to upgrade existing repositories. -
The EC2 image module no longer fetches instance metadata in stage-1. This results in a significantly smaller initramfs, since network drivers no longer need to be included, and faster boots, since metadata fetching can happen in parallel with startup of other services. This breaks services which rely on metadata being present by the time stage-2 is entered. Anything which reads EC2 metadata from
/etc/ec2-metadatashould now have anafterdependency onfetch-ec2-metadata.service -
minioremoved support for its legacy filesystem backend in RELEASE.2022-10-29T06-21-33Z. This means if your storage was created with the old format, minio will no longer start. Unfortunately minio doesn't provide a an automatic migration, they only provide instructions how to manually convert the node. To facilitate this migration we keep around the last version that still supports the old filesystem backend asminio_legacy_fs. Use it viaservices.minio.package = minio_legacy_fs;to export your data before switching to the new version. See the corresponding issue for more details. -
services.sourcehut.dispatchand the corresponding package (sourcehut.dispatchsrht) have been removed due to upstream deprecation. -
The services.snapserver.openFirewall module option default value has been changed from
truetofalse. You will need to explicitly set this option totrue, or configure your firewall. -
The services.tmate-ssh-server.openFirewall module option default value has been changed from
truetofalse. You will need to explicitly set this option totrue, or configure your firewall. -
The services.unifi-video.openFirewall module option default value has been changed from
truetofalse. You will need to explicitly set this option totrue, or configure your firewall. -
Kime has been updated from 2.5.6 to 3.0.2 and the
i18n.inputMethod.kime.configoption has been removed. Users should usedaemonModules,iconColor, andextraConfigoptions underi18n.inputMethod.kimeinstead. -
tuthas been updated from 1.0.34 to 2.0.0, and now uses the TOML format for the configuration file instead of INI. Additional information can be found here. -
The
wordpressderivation no longer contains any builtin plugins or themes; these can be found inwordpressPackages.{plugins,themes}, respectively. -
llvmPackages_rocm.llvmwill not containclangorcompiler-rt.llvmPackages_rocm.clangwill not containllvm.llvmPackages_rocm.clangNoCompilerRthas been removed in favor of usingllvmPackages_rocm.clang-unwrapped. -
The EC2 image module previously detected and automatically mounted ext3-formatted instance store devices and partitions in stage-1 (initramfs), storing
/tmpon the first discovered device. This behaviour, which only catered to very specific use cases and could not be disabled, has been removed. Users relying on this should provide their own implementation, and probably use ext4 and perform the mount in stage-2. -
teleporthas been upgraded to major version 11. Please see upstream upgrade instructions and release notes. -
The EC2 image module previously detected and activated swap-formatted instance store devices and partitions in stage-1 (initramfs). This behaviour has been removed. Users relying on this should provide their own implementation.
-
Qt 5.12 and 5.14 have been removed, as the corresponding branches have been EOL upstream for a long time. This affected under 10 packages in nixpkgs, largely unmaintained upstream as well, however, out-of-tree package expressions may need to be updated manually.
-
The services.wordpress.sites.<name>.plugins and services.wordpress.sites.<name>.themes options have been converted from sets to attribute sets to allow for consumers to specify explicit install paths via attribute name.
-
In
mastodonit is now necessary to specify location of file withPostgreSQLdatabase password. Inservices.mastodon.database.passwordFileparameter default value/var/lib/mastodon/secrets/db-passwordhas been changed tonull. -
The
--target-hostand--build-hostoptions ofnixos-rebuildno longer treat thelocalhostvalue specially – to build on/deploy to local machine, omit the relevant flag. -
The
nix.readOnlyStoreoption has been renamed toboot.readOnlyNixStoreto clarify that it configures the NixOS boot process, not the Nix daemon. -
Deprecated
xlibsWrappertransitional package has been removed in favour of direct use of its constitutents:xorg.libX11,freetypeand others. -
.NET 5.0 was removed due to being end-of-life, use a newer, supported .NET version - https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
Other Notable Changes
-
vim_configurablehas been renamed tovim-fullto avoid confusion:vim-full's build-time features are configurable, but bothvimandvim-fullare customizable (in the sense of user configuration, like vimrc). -
The module for the application firewall
opensnitchgot the ability to configure rules. Available as services.opensnitch.rules -
The module
usbmuxdnow has the ability to change the package used by the daemon. In case you're experiencing issues withusbmuxdyou can try an alternative program likeusbmuxd2. Available as services.usbmuxd.package -
A few openssh options have been moved from extraConfig to the new freeform option
settingsand renamed as follow:services.openssh.kbdInteractiveAuthenticationtoservices.openssh.settings.KbdInteractiveAuthentication,services.openssh.passwordAuthenticationtoservices.openssh.settings.PasswordAuthentication,services.openssh.useDnstoservices.openssh.settings.UseDns,services.openssh.permitRootLogintoservices.openssh.settings.PermitRootLogin,services.openssh.logLeveltoservices.openssh.settings.LogLevel. -
services.mastodongained a tootctl wrapped namedmastodon-tootctlsimilar tonextcloud-occwhich can be executed from any user and switches to the configured mastodon user with sudo and sources the environment variables. -
DocBook option documentation, which has been deprecated since 22.11, will now cause a warning when documentation is built. Out-of-tree modules should migrate to using CommonMark documentation as outlined in to silence this warning.
DocBook option documentation support will be removed in the next release and CommonMark will become the default. DocBook option documentation that has not been migrated until then will no longer render properly or cause errors.
-
The
dnsmasqservice now takes configuration via theservices.dnsmasq.settingsattribute set. The optionservices.dnsmasq.extraConfigwill be deprecated when NixOS 22.11 reaches end of life. -
The
dokuwikiservice now takes configuration via theservices.dokuwiki.sites.<name>.settingsattribute set,extraConfigis deprecated and will be removed. The{aclUse,superUser,disableActions}attributes have been renamed,pluginsConfignow also accepts an attribute set of booleans, passing plain PHP is deprecated. Same applies toaclwhich now also accepts structured settings. -
The
wordpressservice now takes configuration via theservices.wordpress.sites.<name>.settingsattribute set,extraConfigis still available to append additional text towp-config.php. -
To reduce closure size in
nixos/modules/profiles/minimal.nixprofile disabled installation documentations and manuals. Also disabledlogrotateandudisks2services. -
The minimal ISO image now uses the
nixos/modules/profiles/minimal.nixprofile. -
The
ghcWithPackagesandghcWithHooglewrappers will now also symlink GHC's and all included libraries' documentation to$out/share/docfor convenience. If undesired, the old behavior can be restored by overriding the builders with{ installDocumentation = false; }. -
mastodonnow supports connection to a remotePostgreSQLdatabase. -
services.peertubenow requires you to specify the secret filesecrets.secretsFile. It can be generated by runningopenssl rand -hex 32. Before upgrading, read the release notes for PeerTube:And backup your data.
-
services.chronydis now started with additional systemd sandbox/hardening options for better security. -
services.dhcpcdservice now don't solicit or accept IPv6 Router Advertisements on interfaces that use static IPv6 addresses. -
The module
services.headscalewas refactored to be compliant with RFC 0042. To be precise, this means that the following things have changed:- Most settings has been migrated under services.headscale.settings which is an attribute-set that will be converted into headscale's YAML config format. This means that the configuration from headscale's example configuration can be directly written as attribute-set in Nix within this option.
-
nixos/lib/make-disk-image.nixcan now mutate EFI variables, run user-provided EFI firmware or variable templates. This is now extensively documented in the NixOS manual. -
services.grafanalistens only on localhost by default again. This was changed to upstreams default of0.0.0.0by accident in the freeform setting conversion. -
A new
virtualisation.rosettamodule was added to allow runningx86_64binaries through Rosetta inside virtualised NixOS guests on Apple silicon. This feature works by default with the UTM virtualisation package. -
The new option
users.motdFileallows configuring a Message Of The Day that can be updated dynamically. -
The
rootpackage is now built with the"-Dgnuinstall=ON"CMake flag, making the output conform thebinlibsharelayout. In this layout,tutorialsis undershare/doc/ROOT/;cmake,font,icons,jsandmacroundershare/root;Makefile.compandMakefile.configunderetc/root. -
Enabling global redirect in
services.nginx.virtualHostsnow allows one to add exceptions with thelocationsoption. -
A new option
recommendedBrotliSettingshas been added toservices.nginx. Learn more about compression in Brotli format here. -
Garage version is based on system.stateVersion, existing installations will keep using version 0.7. New installations will use version 0.8. In order to upgrade a Garage cluster, please follow upstream instructions and force services.garage.package or upgrade accordingly system.stateVersion.
-
hiphas been separated intohip,hip-commonandhipcc. -
Resilio sync secret keys can now be provided using a secrets file at runtime, preventing these secrets from ending up in the Nix store.
-
The
firewallandnatmodule now has a nftables based implementation. Enablenetworking.nftablesto use it. -
The
services.fwupdmodule now allows arbitrary daemon settings to be configured in a structured manner (services.fwupd.daemonSettings). -
The
unifi-pollerpackage and corresponding NixOS module have been renamed tounpollerto match upstream. -
The new option
services.tailscale.useRoutingFeaturescontrols various settings for using Tailscale features like exit nodes and subnet routers. If you wish to use your machine as an exit node, you can set this setting toserver, otherwise if you wish to use an exit node you can set this setting toclient. The strict RPF warning has been removed as the RPF will be loosened automatically based on the value of this setting. -
Xastir can now access AX.25 interfaces via the
libax25package. -
nixos-versionnow accepts--configuration-revisionto display more information about the current generation revision -
The option
services.nomad.extraSettingsPluginshas been fixed to allow more than one plugin in the path. -
A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing
virtualisation.vlansis still supported for cases where the name of the network interface is irrelevant.