{ config, lib, pkgs, ... }: with lib; let cfg = config.ryan.simple-bar; "simple-bar-upstream" = ./simple-bar-source; in { options.ryan.simple-bar.enable = mkEnableOption "simple-bar"; config = mkIf cfg.enable { home.file."Library/Application Support/Übersicht/widgets/simple-bar" = { source = simple-bar-upstream; recursive = false; }; home.file.".simplebarrc".source = ./simplebarrc; # Install the LaunchD services launchd.agents.simple-bar-server = import ./server.nix { inherit config lib pkgs; }; launchd.agents.ubersicht = { enable = true; config = { ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ]; RunAtLoad = true; }; }; }; }