summaryrefslogtreecommitdiff
path: root/modules/waybar/default.nix
blob: 7d6114d63fd79e580902bcd700f1079f877aac86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, ... }:
{
  options.bar =
    with lib;
    mkOption {
      description = "Bar Configuration";
      type = types.listOf types.str;
      default = [ "default" ];
    };

  config = {
    home-manager.users.n8.programs.waybar.settings.mainBar.outputs = lib.mkForce (
      builtins.map (o: if o == "default" then "*" else toString o) config.bar
    );
  };
}