2020-05-11 21:56:40 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
2020-11-16 21:35:07 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
2020-11-16 21:35:07 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
config = {
|
|
|
|
focus.followMouse = false;
|
|
|
|
menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
bars = [ ];
|
2020-05-11 21:56:40 +00:00
|
|
|
};
|
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/sway/config
|
2022-07-07 17:03:58 +00:00
|
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
2021-09-26 09:08:45 +00:00
|
|
|
${./sway-followmouse-legacy-expected.conf}
|
|
|
|
'';
|
2020-05-11 21:56:40 +00:00
|
|
|
}
|