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