users/ryan/modules/sketchybar/default.nix
a6ca159fc55d3e989eb9de85daa396c593bb0a00
· 412 B · 19 lines
raw
| 1 | { config, lib, pkgs, ... }: |
| 2 | |
| 3 | with lib; |
| 4 | |
| 5 | let |
| 6 | cfg = config.ryan.sketchybar; |
| 7 | in |
| 8 | { |
| 9 | options.ryan.sketchybar.enable = mkEnableOption "sketchybar"; |
| 10 | |
| 11 | config = mkIf cfg.enable { |
| 12 | # Enable the service |
| 13 | programs.sketchybar = { |
| 14 | enable = true; |
| 15 | extraPackages = with pkgs; [ jq blueutil ]; |
| 16 | config = { source = ./bar-config; recursive = true; }; |
| 17 | }; |
| 18 | }; |
| 19 | } |