2021-06-05 20:05:04 +02:00
[[sec-release-21.11]]
== Release 21.11
2021-12-02 05:20:53 +01:00
The 21.11 release branch became the stable branch in November, 2021.
2021-06-05 20:05:04 +02:00
[[sec-release-21.11-highlights]]
=== Highlights
This release has the following notable changes:
2021-07-07 23:24:27 +02:00
* All Home Manager modules are now loaded on all platforms. With this
change you will get a more descriptive error message if you attempt to
enable a module that is incompatible with the host platform.
+
Previously, modules that were platform specific would only be loaded
on that particular platform. For example, a module defining a
https://systemd.io/[systemd] service would only be loaded when the
host platform was Linux. This reduced evaluation times, simplified the
generated documentation, and made it impossible to accidentally use
modules that do not support the host platform.
+
While the above benefits are quite nice, avoiding module loads also
brings a few problems. For example, the
https://nix-community.github.io/home-manager/[public documentation]
will only show the options available for Linux hosts and the
documentation cannot make references to options within modules that
are unavailable on some hosts. Finally, users who wish to use the same
configuration file for different platforms cannot do so, even if the
platform incompatible options are unused.
+
Ultimately, the benefits of loading all modules won and the behavior
has now changed. For associated discussion see
https://github.com/nix-community/home-manager/issues/1906[issue #1906].
2021-06-05 20:05:04 +02:00
2021-10-08 18:45:22 +02:00
* Rofi version 1.7.0 removed many options that were used by the module and replaced them with custom themes, which are more flexible and powerful.
+
You can replicate your old configuration by moving those options to <<opt-programs.rofi.theme>>. Keep in mind that the syntax is different so you may need to do some changes.
2021-11-24 03:33:03 +01:00
* Taskwarrior version 2.6.0 respects XDG Specification for the config file now.
Option <<opt-programs.taskwarrior.config>> and friends now generate the config file at
`$XDG_CONFIG_HOME/task/taskrc` instead of `~/.taskrc`.
2021-06-05 20:05:04 +02:00
[[sec-release-21.11-state-version-changes]]
=== State Version Changes
The state version in this release includes the changes below. These
changes are only active if the `home.stateVersion` option is set to
"21.11" or later.
2021-07-29 02:52:25 +02:00
* The <<opt-home.keyboard>> option now defaults to `null`, meaning that Home Manager won't do any keyboard layout management. For example, `setxkbmap` won't be run in X sessions.
2021-10-27 19:13:07 +02:00
* The <<opt-programs.pet.settings>> option no longer place its value inside a `General` attribute.
2021-12-02 05:22:41 +01:00
For example,
2021-10-27 19:13:07 +02:00
+
[source,nix]
programs.pet.settings.editor = "nvim";
+
2021-12-02 05:22:41 +01:00
becomes
2021-10-27 19:13:07 +02:00
+
[source,nix]
programs.pet.settings.General.editor = "nvim";
2021-12-02 05:22:41 +01:00
* The <<opt-programs.waybar.settings>> option now allows defining modules directly under <<opt-programs.waybar.settings>>.
For example,
+
[source,nix]
programs.waybar.settings.modules."custom/my-module" = { };
+
becomes
+
[source,nix]
programs.waybar.settings."custom/my-module" = { };