2021-11-04 16:42:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
2023-01-10 09:35:00 +00:00
|
|
|
config = null;
|
2023-08-08 10:19:01 +00:00
|
|
|
systemd.enable = false;
|
2023-01-10 09:35:00 +00:00
|
|
|
xwayland = false;
|
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) \
|
|
|
|
${
|
|
|
|
pkgs.writeText "expected" ''
|
|
|
|
xwayland disable
|
|
|
|
''
|
|
|
|
}
|
2021-11-04 16:42:44 +00:00
|
|
|
'';
|
|
|
|
}
|