Skip to content

Commit

Permalink
jira token
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Oct 4, 2024
1 parent b15dbb5 commit a4cfaf3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

secrets = {
url = "github:appaquet/dotfiles-secrets";
# url = "path:/home/appaquet/dotfiles/secrets";
#url = "path:/home/appaquet/dotfiles/secrets";
inputs.nixpkgs.follows = "nixpkgs";
};

Expand Down
16 changes: 11 additions & 5 deletions home-manager/modules/work/jira.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{ pkgs, ... }:
{ pkgs, secrets, ... }:

{
home.packages = with pkgs; [
jira-cli-go
];

programs.fish.functions.jira-list = "jira sprint list --current -a(jira me) --plain --columns \"key,summary,status\" --order-by rank --reverse";
programs.fish = {
functions.jira-list = "jira sprint list --current -a(jira me) --plain --columns \"key,summary,status\" --order-by rank --reverse";

programs.fish.shellAbbrs = {
jb = "jira-board"; # from humanfirst shared
jl = "jira-list";
shellAbbrs = {
jb = "jira-board"; # from humanfirst shared
jl = "jira-list";
};
};

programs.fish.interactiveShellInit = ''
set JIRA_API_TOKEN (cat ${secrets.work.jiraToken})
'';
}
2 changes: 1 addition & 1 deletion secrets

0 comments on commit a4cfaf3

Please sign in to comment.