From 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 3 Aug 2026 01:22:44 -0400 Subject: Initial commit: combined darwin + guix-linux home-manager flake Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md. --- users/ryan/modules/simple-bar/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..e05fe08 --- /dev/null +++ b/users/ryan/modules/simple-bar/default.nix @@ -0,0 +1,30 @@ +{ 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; + }; + }; + }; +} -- cgit v1.3.1