1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-28 21:21:02 +01:00
home-manager/tests/modules/programs/waybar/deprecated-modules-option.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

43 lines
1,017 B
Nix

{ config, ... }:
{
config = {
home.stateVersion = "22.05";
programs.waybar = {
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
enable = true;
settings = [
{
modules-center = [ "test" ];
modules = {
"test" = { };
};
}
];
};
test.asserts.assertions.expected = [
''
The `programs.waybar.settings.[].modules` option has been removed.
It is now possible to declare modules in the configuration without nesting them under the `modules` option.
''
];
nmt.script = ''
assertPathNotExists home-files/.config/waybar/style.css
assertFileContent \
home-files/.config/waybar/config \
${builtins.toFile "waybar-deprecated-modules-option.json" ''
[
{
"modules-center": [
"test"
],
"test": {}
}
]
''}
'';
};
}