2023-06-10 10:10:40 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
2023-11-09 18:19:45 +00:00
|
|
|
checkConfig = false;
|
2023-06-10 10:10:40 +00:00
|
|
|
# overriding findutils causes issues
|
|
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
|
|
|
|
systemd.xdgAutostart = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/sway-session.target
|
|
|
|
assertFileContent home-files/.config/systemd/user/sway-session.target \
|
|
|
|
${./sway-systemd-autostart.target}
|
|
|
|
'';
|
|
|
|
}
|