mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 16:57:03 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
26 lines
613 B
Nix
26 lines
613 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}
|
|
'';
|
|
}
|