2020-07-29 20:29:51 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
{
|
2020-07-29 20:29:51 +00:00
|
|
|
config = {
|
2021-11-18 22:59:20 +00:00
|
|
|
home.stateVersion = "21.11";
|
|
|
|
|
2020-07-29 20:29:51 +00:00
|
|
|
programs.waybar = {
|
2021-09-26 09:08:45 +00:00
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
2020-07-29 20:29:51 +00: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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|