From 4081f9bccad52e667d176bbffcc4fa8ec6cdccfb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 10 Feb 2026 19:49:29 -0800 Subject: [PATCH] feat: remove katnivan git-sync, add per-repo tray icons Remove katnivan repository from both imalison and kat git-sync configs. Add per-repo tray icon support with icon mapping for org and password-store. Co-Authored-By: Claude Opus 4.6 --- nixos/git-sync.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/nixos/git-sync.nix b/nixos/git-sync.nix index f60a457d..4427d1f6 100644 --- a/nixos/git-sync.nix +++ b/nixos/git-sync.nix @@ -1,7 +1,15 @@ { pkgs, lib, ... }: let - gitSyncTrayEnv = { - Service.Environment = [ "GIT_SYNC_TRAY=1" ]; + mkGitSyncTrayOverrides = icon: { + Service = { + Environment = [ "GIT_SYNC_TRAY=1" "GIT_SYNC_TRAY_ICON=${icon}" ]; + Restart = lib.mkForce "on-failure"; + RestartSec = 5; + }; + }; + repoIcons = { + org = "text-org"; + password-store = "password"; }; in { home-manager.users.imalison = ({ config, ... }: { @@ -18,16 +26,12 @@ in { path = config.home.homeDirectory + "/.password-store"; uri = "git@github.com:IvanMalison/.password-store.git"; }; - katnivan = { - path = config.home.homeDirectory + "/katnivan"; - uri = "ssh://gitea@dev.railbird.ai:1123/colonelpanic/katnivan.git"; - interval = 30; - }; }; }; systemd.user.services = lib.mapAttrs' - (name: _: lib.nameValuePair "git-sync-${name}" gitSyncTrayEnv) + (name: _: lib.nameValuePair "git-sync-${name}" + (mkGitSyncTrayOverrides (repoIcons.${name} or "git"))) config.services.git-sync.repositories; }); @@ -44,11 +48,6 @@ in { uri = "ssh://gitea@1896Folsom.duckdns.org:1123/kkathuang/org.git"; interval = 180; }; - katnivan = { - path = config.home.homeDirectory + "/katnivan"; - uri = "ssh://gitea@1896Folsom.duckdns.org:1123/colonelpanic/katnivan.git"; - interval = 30; - }; }; }; });