treewide: update 21.03 to 21.05

The NixOS 21.03 release has been delayed to 21.05. See NixOS/rfcs#80.

There are two instances of 21.03 which have been left as is, since they
are in stateVersion comparisons. This will ensure that existing user
configurations which refer to 21.03 will continue to work.

Changed files
+26 -16
nixos
doc
modules
services
mail
networking
web-apps
pkgs
applications
editors
emacs-modes
top-level
+1 -1
.version
···
-
21.03
···
+
21.05
+1 -1
nixos/doc/manual/release-notes/release-notes.xml
···
This section lists the release notes for each stable version of NixOS and
current unstable revision.
</para>
-
<xi:include href="rl-2103.xml" />
<xi:include href="rl-2009.xml" />
<xi:include href="rl-2003.xml" />
<xi:include href="rl-1909.xml" />
···
This section lists the release notes for each stable version of NixOS and
current unstable revision.
</para>
+
<xi:include href="rl-2105.xml" />
<xi:include href="rl-2009.xml" />
<xi:include href="rl-2003.xml" />
<xi:include href="rl-1909.xml" />
+4 -2
nixos/doc/manual/release-notes/rl-2009.xml
···
<title>Release 20.09 (“Nightingale”, 2020.10/27)</title>
<para>
-
Support is planned until the end of April 2021, handing over to 21.03.
</para>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
···
<listitem>
<para>
Specifying <link linkend="opt-services.dovecot2.mailboxes">mailboxes</link> in the <package>dovecot2</package> module
-
as a list is deprecated and will break eval in 21.03. Instead, an attribute-set should be specified where the <literal>name</literal>
should be the key of the attribute.
</para>
<para>
···
<title>Release 20.09 (“Nightingale”, 2020.10/27)</title>
<para>
+
Support is planned until the end of June 2021, handing over to 21.05.
+
(Plans <link xlink:href="https://github.com/NixOS/rfcs/blob/master/rfcs/0080-nixos-release-schedule.md#core-changes">
+
have shifted</link> by two months since release of 20.09.)
</para>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
···
<listitem>
<para>
Specifying <link linkend="opt-services.dovecot2.mailboxes">mailboxes</link> in the <package>dovecot2</package> module
+
as a list is deprecated and will break eval in 21.05. Instead, an attribute-set should be specified where the <literal>name</literal>
should be the key of the attribute.
</para>
<para>
+7 -7
nixos/doc/manual/release-notes/rl-2103.xml nixos/doc/manual/release-notes/rl-2105.xml
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
-
xml:id="sec-release-21.03">
-
<title>Release 21.03 (“Okapi”, 2021.03/??)</title>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
-
xml:id="sec-release-21.03-highlights">
<title>Highlights</title>
<para>
···
<itemizedlist>
<listitem>
<para>
-
Support is planned until the end of October 2021, handing over to 21.09.
</para>
</listitem>
<listitem>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
-
xml:id="sec-release-21.03-new-services">
<title>New Services</title>
<para>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
-
xml:id="sec-release-21.03-incompatibilities">
<title>Backward Incompatibilities</title>
<para>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
-
xml:id="sec-release-21.03-notable-changes">
<title>Other Notable Changes</title>
<itemizedlist>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
+
xml:id="sec-release-21.05">
+
<title>Release 21.05 (“Okapi”, 2021.05/??)</title>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
+
xml:id="sec-release-21.05-highlights">
<title>Highlights</title>
<para>
···
<itemizedlist>
<listitem>
<para>
+
Support is planned until the end of December 2021, handing over to 21.11.
</para>
</listitem>
<listitem>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
+
xml:id="sec-release-21.05-new-services">
<title>New Services</title>
<para>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
+
xml:id="sec-release-21.05-incompatibilities">
<title>Backward Incompatibilities</title>
<para>
···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
+
xml:id="sec-release-21.05-notable-changes">
<title>Other Notable Changes</title>
<itemizedlist>
+1 -1
nixos/modules/services/mail/dovecot.nix
···
environment.systemPackages = [ dovecotPkg ];
warnings = mkIf (any isList options.services.dovecot2.mailboxes.definitions) [
-
"Declaring `services.dovecot2.mailboxes' as a list is deprecated and will break eval in 21.03! See the release notes for more info for migration."
];
assertions = [
···
environment.systemPackages = [ dovecotPkg ];
warnings = mkIf (any isList options.services.dovecot2.mailboxes.definitions) [
+
"Declaring `services.dovecot2.mailboxes' as a list is deprecated and will break eval in 21.05! See the release notes for more info for migration."
];
assertions = [
+1 -1
nixos/modules/services/networking/kresd.nix
···
# Try cleaning up the previously default location of cache file.
# Note that /var/cache/* should always be safe to remove.
-
# TODO: remove later, probably between 20.09 and 21.03
systemd.tmpfiles.rules = [ "R /var/cache/kresd" ];
};
}
···
# Try cleaning up the previously default location of cache file.
# Note that /var/cache/* should always be safe to remove.
+
# TODO: remove later, probably between 20.09 and 21.05
systemd.tmpfiles.rules = [ "R /var/cache/kresd" ];
};
}
+4
nixos/modules/services/web-apps/hedgedoc.nix
···
let
cfg = config.services.hedgedoc;
name = if versionAtLeast config.system.stateVersion "21.03"
then "hedgedoc"
else "codimd";
···
let
cfg = config.services.hedgedoc;
+
# 21.03 will not be an official release - it was instead 21.05. This
+
# versionAtLeast statement remains set to 21.03 for backwards compatibility.
+
# See https://github.com/NixOS/nixpkgs/pull/108899 and
+
# https://github.com/NixOS/rfcs/blob/master/rfcs/0080-nixos-release-schedule.md.
name = if versionAtLeast config.system.stateVersion "21.03"
then "hedgedoc"
else "codimd";
+5 -1
nixos/modules/services/web-apps/nextcloud.nix
···
'')
++ (optional (versionOlder cfg.package.version "18") (upgradeWarning 17 "20.03"))
++ (optional (versionOlder cfg.package.version "19") (upgradeWarning 18 "20.09"))
-
++ (optional (versionOlder cfg.package.version "20") (upgradeWarning 19 "21.03"));
services.nextcloud.package = with pkgs;
mkDefault (
···
''
else if versionOlder stateVersion "20.03" then nextcloud17
else if versionOlder stateVersion "20.09" then nextcloud18
else if versionOlder stateVersion "21.03" then nextcloud19
else nextcloud20
);
···
'')
++ (optional (versionOlder cfg.package.version "18") (upgradeWarning 17 "20.03"))
++ (optional (versionOlder cfg.package.version "19") (upgradeWarning 18 "20.09"))
+
++ (optional (versionOlder cfg.package.version "20") (upgradeWarning 19 "21.05"));
services.nextcloud.package = with pkgs;
mkDefault (
···
''
else if versionOlder stateVersion "20.03" then nextcloud17
else if versionOlder stateVersion "20.09" then nextcloud18
+
# 21.03 will not be an official release - it was instead 21.05.
+
# This versionOlder statement remains set to 21.03 for backwards compatibility.
+
# See https://github.com/NixOS/nixpkgs/pull/108899 and
+
# https://github.com/NixOS/rfcs/blob/master/rfcs/0080-nixos-release-schedule.md.
else if versionOlder stateVersion "21.03" then nextcloud19
else nextcloud20
);
+1 -1
pkgs/applications/editors/emacs-modes/melpa-packages.nix
···
};
# Deprecated legacy aliases for backwards compat
-
aliases = lib.listToAttrs (lib.attrValues (lib.mapAttrs (n: v: { name = v; value = builtins.trace "Melpa attribute '${v}' is a legacy alias that will be removed in 21.03, use '${n}' instead" melpaPackages.${n}; }) (lib.filterAttrs (n: v: lib.hasAttr n melpaPackages) {
"auto-complete-clang-async" = "emacsClangCompleteAsync";
"vterm" = "emacs-libvterm";
"0xc" = "_0xc";
···
};
# Deprecated legacy aliases for backwards compat
+
aliases = lib.listToAttrs (lib.attrValues (lib.mapAttrs (n: v: { name = v; value = builtins.trace "Melpa attribute '${v}' is a legacy alias that will be removed in 21.05, use '${n}' instead" melpaPackages.${n}; }) (lib.filterAttrs (n: v: lib.hasAttr n melpaPackages) {
"auto-complete-clang-async" = "emacsClangCompleteAsync";
"vterm" = "emacs-libvterm";
"0xc" = "_0xc";
+1 -1
pkgs/top-level/aliases.nix
···
todolist = throw "todolist is now ultralist."; # added 2020-12-27
-
/* Cleanup before 21.03 */
riot-desktop = throw "riot-desktop is now element-desktop!";
riot-web = throw "riot-web is now element-web";
···
todolist = throw "todolist is now ultralist."; # added 2020-12-27
+
/* Cleanup before 21.05 */
riot-desktop = throw "riot-desktop is now element-desktop!";
riot-web = throw "riot-web is now element-web";