2.home-manager/tests/modules/programs/waybar/systemd-with-graphical-session-target.nix
2026-03-27 09:41:16 -05:00

22 lines
608 B
Nix

{ config, ... }:
{
config = {
home.stateVersion = "21.11";
programs.waybar = {
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
enable = true;
systemd.enable = true;
systemd.targets = [ "sway-session.target" ];
};
nmt.script = ''
assertPathNotExists home-files/.config/waybar/config
assertPathNotExists home-files/.config/waybar/style.css
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/waybar.service)
assertFileContent "$serviceFile" ${./systemd-with-graphical-session-target.service}
'';
};
}