Commit c275f0e87352

Vincent Demeester <vincent@sbr.pm>
2026-06-18 11:57:23
feat(aomi): add jira-cli wrapper with passage token
Added jira-wrapped script that sources the Jira API token from passage before executing jira-cli-go, enabling authenticated Jira access on aomi.
1 parent 2f21fbb
Changed files (1)
systems
systems/aomi/home.nix
@@ -1,4 +1,10 @@
 { pkgs, ... }:
+let
+  jira-wrapped = pkgs.writeShellScriptBin "jira" ''
+    export JIRA_API_TOKEN=$(${pkgs.passage}/bin/passage show redhat/issues/atlassian/token)
+    exec ${pkgs.jira-cli-go}/bin/jira "$@"
+  '';
+in
 {
   imports = [
     ../../home/common/services/usage-metrics.nix
@@ -42,6 +48,7 @@
     ssh-to-age
 
     lazygit
+    jira-wrapped
   ];
 
 }