aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/module/default.nix
blob: 77d97cbcecd5ef9a92e097a5df2aeebae5e45520 (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
27
{
  lib,
  ...
}@input:
let
  inherit (import ../lib.nix input) mkIcon icons;

  args = input // {
    inherit mkIcon icons;
  };

  modules = {
    "battery" = ./battery.nix;
    "cpu" = ./cpu.nix;
    "clock#date" = ./date.nix;
    "memory" = ./memory.nix;
    "network" = ./network.nix;
    "clock#time" = ./time.nix;
    "pulseaudio" = ./volume.nix;
    "custom/vpn" = ./vpn.nix;
    "hyprland/window" = ./window.nix;
    "hyprland/workspaces" = ./workspaces.nix;
  };
in
{
  mainBar = lib.mapAttrs (_name: path: import path args) modules;
}