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 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
gitSyncTrayEnv = {
|
mkGitSyncTrayOverrides = icon: {
|
||||||
Service.Environment = [ "GIT_SYNC_TRAY=1" ];
|
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 {
|
in {
|
||||||
home-manager.users.imalison = ({ config, ... }: {
|
home-manager.users.imalison = ({ config, ... }: {
|
||||||
@@ -18,16 +26,12 @@ in {
|
|||||||
path = config.home.homeDirectory + "/.password-store";
|
path = config.home.homeDirectory + "/.password-store";
|
||||||
uri = "git@github.com:IvanMalison/.password-store.git";
|
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'
|
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;
|
config.services.git-sync.repositories;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -44,11 +48,6 @@ in {
|
|||||||
uri = "ssh://gitea@1896Folsom.duckdns.org:1123/kkathuang/org.git";
|
uri = "ssh://gitea@1896Folsom.duckdns.org:1123/kkathuang/org.git";
|
||||||
interval = 180;
|
interval = 180;
|
||||||
};
|
};
|
||||||
katnivan = {
|
|
||||||
path = config.home.homeDirectory + "/katnivan";
|
|
||||||
uri = "ssh://gitea@1896Folsom.duckdns.org:1123/colonelpanic/katnivan.git";
|
|
||||||
interval = 30;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user