this repo has no description
1{
2 pkgs,
3 lib,
4 ...
5}:
6{
7 # WIP
8 options.swiftbar =
9 let
10 inherit (lib) mkOption types;
11 in
12 {
13 enable = lib.mkEnableOption "swiftbar";
14
15 package = lib.mkPackageOption pkgs "swiftbar" { };
16
17 plugins = mkOption {
18 type = types.attrsOf (
19 types.submodule {
20 enable = lib.mkEnableOption "current SwiftBar plugin";
21
22 frequency = mkOption {
23 type = types.string;
24 example = "1m";
25 description = ''
26 How often should SwiftBar run script in the background.
27 '';
28 };
29
30 script = mkOption {
31 type = types.string;
32 };
33 }
34 );
35 };
36 };
37
38 config = {
39 home.packages = [
40 # pkgs.swiftbar
41 ];
42
43 targets.darwin.defaults = {
44 "com.ameba.SwiftBar" = {
45 PluginDirectory = "/Users/hauleth/.config/swift-bar/plugins/";
46 };
47 };
48 };
49}