Files
home-manager/tests/modules/programs/rofi/explicit-legacy-defaults.nix
Austin Horstman e9796a288e lib/deprecations: name exact settings destinations
Forward converted values to the complete settings path so the standard
changed-option warning identifies the destination key. Preserve legacy
reads, priorities, defaults, and shadowed conversions.

Point mpdris2 at Library.music_dir directly and cover nested paths,
literal dotted keys, and the affected callers in warning tests. The
contributor guidelines now describe `to` as the settings path that
contains `key` instead of the settings root.
2026-09-23 22:37:57 -05:00

36 lines
955 B
Nix

{ lib, options, ... }:
{
programs.rofi = {
enable = true;
location = "center";
xoffset = 0;
yoffset = 0;
};
test.asserts.warnings.expected = [
"The option `programs.rofi.location' defined in ${lib.showFiles options.programs.rofi.location.files} has been changed to `programs.rofi.settings.location' that has a different type. Please read `programs.rofi.settings.location' documentation and update your configuration accordingly."
]
++
map
(
name:
"The option `programs.rofi.${name}' defined in ${
lib.showFiles options.programs.rofi.${name}.files
} has been renamed to `programs.rofi.settings.${name}'."
)
[
"yoffset"
"xoffset"
];
nmt.script = ''
assertFileContent home-files/.config/rofi/config.rasi ${builtins.toFile "expected.rasi" ''
configuration {
location: 0;
xoffset: 0;
yoffset: 0;
}
''}
'';
}