2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, lib, config, ... } @args: with lib; let
|
|
|
|
cfg = config.module.desktop.waybar;
|
2024-05-02 04:47:21 +03:00
|
|
|
waybar = import ./waybar args;
|
|
|
|
in {
|
2024-06-25 04:04:39 +03:00
|
|
|
options = {
|
|
|
|
module.desktop.waybar.enable = mkEnableOption "Waybar.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.waybar.enable = true;
|
2024-05-04 23:15:57 +03:00
|
|
|
|
2024-06-25 04:04:39 +03:00
|
|
|
environment.variables = {
|
|
|
|
WAYBAR_CONFIG = waybar.config;
|
|
|
|
WAYBAR_STYLE = waybar.style;
|
|
|
|
};
|
2024-05-04 23:15:57 +03:00
|
|
|
};
|
2024-05-02 04:47:21 +03:00
|
|
|
}
|