1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00
home-manager/tests/modules/programs/wlogout/layout-single.nix

28 lines
571 B
Nix
Raw Normal View History

2023-01-31 17:06:18 +01:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
home.stateVersion = "22.11";
programs.wlogout = {
package = config.lib.test.mkStubPackage { outPath = "@wlogout@"; };
enable = true;
layout = [{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}];
};
nmt.script = ''
assertPathNotExists home-files/.config/wlogout/style.css
assertFileContent \
home-files/.config/wlogout/layout \
${./layout-single-expected.json}
'';
};
}