mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 16:59:47 +01:00
6f7074d21d
* rofi: migrate to rasi configuration format The Xresources configuration format is deprecated in Rofi. For example, using Rofi from unstable (1.6.1 as of now) you get the following warnings when starting the application: ``` (process:9272): Rofi-WARNING **: 01:38:48.596: The old Xresources based configuration format is deprecated. (process:9272): Rofi-WARNING **: 01:38:48.596: Please upgrade: rofi -upgrade-config. `````` So this commit migrates it for its new configuration format, called rasi instead. This new implementation uses attrsets manipulation instead of using strings, making the code clearer and also fixing some bugs found during the way. To make sure everything is right, I also created some tests. If someone wants to validate if the generated config is correct, just run in terminal: ``` $ rofi -dump-config ``` And rofi will dump the current configuration file, including all unsetted options. * docs: document programs.rofi.extraConfig changes * rofi: add thiagokokada as maintainer * rofi: add toRasi function
82 lines
1.8 KiB
Text
82 lines
1.8 KiB
Text
[[sec-release-21.03]]
|
|
== Release 21.03
|
|
|
|
This is the current unstable branch and the information in this
|
|
section is therefore not final.
|
|
|
|
[[sec-release-21.03-highlights]]
|
|
=== Highlights
|
|
|
|
This release has the following notable changes:
|
|
|
|
* The <<opt-programs.broot.verbs>> option is now a list rather than an
|
|
attribute set. To migrate, move the keys of the attrset into the list
|
|
items' `invocation` keys. For example,
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.broot.verbs = {
|
|
"p" = { execution = ":parent"; };
|
|
};
|
|
----
|
|
+
|
|
becomes
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.broot.verbs = [
|
|
{
|
|
invocation = "p";
|
|
execution = ":parent";
|
|
}
|
|
];
|
|
----
|
|
|
|
* The <<opt-programs.mpv.package>> option has been changed to allow custom
|
|
derivations. The following configuration is now possible:
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
|
|
vapoursynthSupport = true;
|
|
}) {
|
|
extraMakeWrapperArgs = [
|
|
"--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
|
|
];
|
|
});
|
|
----
|
|
+
|
|
As a result of this change, <<opt-programs.mpv.package>> is no longer the
|
|
resulting derivation. Use the newly introduced `programs.mpv.finalPackage`
|
|
instead.
|
|
|
|
* The <<opt-programs.rofi.extraConfig>> option is now an attrset rather
|
|
than a string. To migrate, move the each line into the attrset,
|
|
removing the `rofi.` prefix from the keys. For example,
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.rofi.extraConfig = ''
|
|
rofi.show-icons: true
|
|
rofi.modi: drun,emoji,ssh
|
|
'';
|
|
----
|
|
+
|
|
becomes
|
|
+
|
|
[source,nix]
|
|
----
|
|
programs.rofi.extraConfig = {
|
|
show-icons = true;
|
|
modi = "drun,emoji,ssh";
|
|
};
|
|
----
|
|
|
|
[[sec-release-21.03-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.03" or later.
|
|
|
|
* Nothing has happened.
|