1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/services/sway/sway-systemd-autostart.nix
Austin Horstman 06c1392ca8 tests: implement auto importing for modules
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

19 lines
518 B
Nix

{ config, pkgs, ... }:
{
wayland.windowManager.sway = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
checkConfig = false;
# 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}
'';
}