summaryrefslogtreecommitdiff
path: root/hm/env/waybar.nix
blob: 970c29a11b63057939ca29c4d518e13b1cb2680a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  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;
        targets = [ "graphical-session.target" ];
      };
    };
  };
}