summaryrefslogtreecommitdiff
path: root/hm/env/waybar.nix
blob: b75cc91c57af07f78f0f5a40423041757c15284e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}: let
  cfg = config.hm.env.waybar;
in {
  options.hm.env.waybar.enable = lib.mkEnableOption "enables waybar";
  config = lib.mkIf cfg.enable {
    programs.waybar = {
      enable = true;
      systemd = {
        enable = true;
        target = "graphical-session.target";
      };
    };
  };
}