1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-20 16:59:47 +01:00
home-manager/tests/modules/programs/waybar/systemd-with-graphical-session-target.nix

25 lines
543 B
Nix
Raw Normal View History

2020-07-29 22:29:51 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
2020-07-29 22:29:51 +02:00
config = {
home.stateVersion = "21.11";
2020-07-29 22:29:51 +02:00
programs.waybar = {
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
2020-07-29 22:29:51 +02:00
enable = true;
systemd.enable = true;
};
nmt.script = ''
assertPathNotExists home-files/.config/waybar/config
assertPathNotExists home-files/.config/waybar/style.css
assertFileContent \
home-files/.config/systemd/user/waybar.service \
${./systemd-with-graphical-session-target.service}
'';
};
}