From 6f57129de949e225ef1fe40ae83f7d2da80b3911 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 9 Feb 2026 01:33:31 -0800 Subject: [PATCH] git-sync: enable tray indicator via GIT_SYNC_TRAY env var Co-Authored-By: Claude Opus 4.6 --- nixos/git-sync.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/git-sync.nix b/nixos/git-sync.nix index 8a31d8f1..f4eefec4 100644 --- a/nixos/git-sync.nix +++ b/nixos/git-sync.nix @@ -1,4 +1,9 @@ -{ pkgs, ... }: { +{ pkgs, lib, ... }: +let + gitSyncTrayEnv = { + Service.Environment = [ "GIT_SYNC_TRAY=1" ]; + }; +in { home-manager.users.imalison = ({ config, ... }: { services.git-sync = { enable = true; @@ -24,6 +29,10 @@ }; }; }; + + systemd.user.services = lib.mapAttrs' + (name: _: lib.nameValuePair "git-sync-${name}" gitSyncTrayEnv) + config.services.git-sync.repositories; }); home-manager.users.kat = ({ config, ... }: {