1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/wleave/layout-single.nix
2025-09-19 10:43:34 -05:00

26 lines
585 B
Nix

{ config, ... }:
{
config = {
home.stateVersion = "22.11";
programs.wleave = {
package = config.lib.test.mkStubPackage { outPath = "@wleave@"; };
enable = true;
settings.buttons = [
{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
];
};
nmt.script = ''
assertPathNotExists home-files/.config/wleave/style.css
assertFileContent \
home-files/.config/wleave/layout.json \
${./layout-single-expected.json}
'';
};
}