home-manager/tests/modules/programs/waybar/systemd-with-graphical-session-target.nix
Nicolas Berbiche f4f9f1a618
waybar: add module
PR #1329
2020-08-14 00:20:49 +02:00

25 lines
546 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
package = pkgs.writeScriptBin "dummy-waybar" "" // { outPath = "@waybar@"; };
in {
config = {
programs.waybar = {
inherit package;
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}
'';
};
}