2020-10-12 00:22:58 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
config = {
|
|
|
|
focus.followMouse = false;
|
|
|
|
menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
bars = [ ];
|
2020-10-12 00:22:58 +00:00
|
|
|
};
|
|
|
|
};
|
2021-11-04 16:42:44 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/sway/config
|
2023-01-10 09:35:00 +00:00
|
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
2021-11-04 16:42:44 +00:00
|
|
|
${./sway-followmouse-legacy-expected.conf}
|
|
|
|
'';
|
2020-10-12 00:22:58 +00:00
|
|
|
}
|