users/ryan/modules/sketchybar/default.nix

6ad98695409ab789b2b3b15c95de404daf46d1a7 · 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 }