users/ryan/modules/sketchybar/default.nix

7108fc28e06a6326f7a04251cc95bbe50ced6133 · 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 }