nix/module/desktop/Waybar.nix

18 lines
370 B
Nix
Raw Normal View History

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-06-25 04:04:39 +03:00
environment.variables = {
WAYBAR_CONFIG = waybar.config;
WAYBAR_STYLE = waybar.style;
};
};
2024-05-02 04:47:21 +03:00
}