{ pkgs, lib, ... }: { # WIP options.swiftbar = let inherit (lib) mkOption types; in { enable = lib.mkEnableOption "swiftbar"; package = lib.mkPackageOption pkgs "swiftbar" {}; plugins = mkOption { type = types.attrsOf (types.submodule { enable = lib.mkEnableOption "current SwiftBar plugin"; frequency = mkOption { type = types.string; example = "1m"; description = '' How often should SwiftBar run script in the background. ''; }; script = mkOption { type = types.string; }; }); }; }; config = { home.packages = [ # pkgs.swiftbar ]; targets.darwin.defaults = { "com.ameba.SwiftBar" = { PluginDirectory = "/Users/hauleth/.config/swift-bar/plugins/"; }; }; }; }