From 8f71fac972b4fe5a98459148d9b33d1748deaa7f Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 6 Jul 2026 22:50:11 -0400 Subject: initial simple-bar config --- users/ryan/modules/simple-bar/default.nix | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 users/ryan/modules/simple-bar/default.nix (limited to 'users/ryan/modules/simple-bar/default.nix') diff --git a/users/ryan/modules/simple-bar/default.nix b/users/ryan/modules/simple-bar/default.nix new file mode 100644 index 0000000..116216f --- /dev/null +++ b/users/ryan/modules/simple-bar/default.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.ryan.simple-bar; + # Fetch the git repo at a specific rev + "simple-bar-upstream" = builtins.fetchGit { + url = "https://github.com/Jean-Tinland/simple-bar"; + rev = "fb5cada548a05bd01f727772c0a18fd8c7f65b42"; + shallow = true; + }; +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; + }; + }; + }; +} -- cgit v1.3