aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/waybar/systemd-with-graphical-session-target.nix
blob: e751d804dabc81ae0b34b10bca374c7b76b15ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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}
    '';
  };
}