aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/default.nix
blob: 9872086016b6af1be881020612deca088daeb917 (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
25
26
{
  config,
  lib,
  pkgs,
  ...
}:
{
  config = lib.mkIf config.desktop.enable {
    programs.waybar = {
      enable = true;
      systemd.enable = true;

      settings = lib.mkMerge [
        (import ./bar { inherit config; })
        (import ./module { inherit config lib pkgs; })
      ];

      style = builtins.readFile (
        config.scheme {
          template = builtins.readFile ./style.mustache.css;
          extension = ".css";
        }
      );
    };
  };
}