1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 18:59:44 +01:00
home-manager/tests/modules/services/window-managers/sway/sway-followmouse-legacy.nix

23 lines
511 B
Nix
Raw Normal View History

2023-05-13 00:08:12 +02:00
{ config, pkgs, ... }:
{
imports = [ ./sway-stubs.nix ];
wayland.windowManager.sway = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
config = {
focus.followMouse = false;
menu = "${pkgs.dmenu}/bin/dmenu_run";
bars = [ ];
};
};
nmt.script = ''
assertFileExists home-files/.config/sway/config
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
${./sway-followmouse-legacy-expected.conf}
'';
}