2.home-manager/tests/modules/services/fusuma/settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

38 lines
721 B
Nix

{ config, pkgs, ... }:
{
imports = [ ./fusuma-stubs.nix ];
services.fusuma = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@fusuma@"; };
extraPackages = [ pkgs.xdotool ];
settings = {
threshold = {
swipe = 1;
};
interval = {
swipe = 7;
};
swipe = {
"3" = {
left = {
command = "xdotool key ctrl+alt+Right";
};
};
"4" = {
left = {
command = "xdotool key ctrl+shift+alt+Right";
};
};
};
};
};
nmt.script = ''
assertFileContent \
home-files/.config/fusuma/config.yml \
${./expected-settings.yaml}
'';
}