diff --git a/modules/programs/taskwarrior.nix b/modules/programs/taskwarrior.nix index 26c44e0..c578536 100644 --- a/modules/programs/taskwarrior.nix +++ b/modules/programs/taskwarrior.nix @@ -35,6 +35,9 @@ in { tsak python # needed for hooks + + # funktioiert irgendwie nicht + # python3Packages.bugwarrior ]; }; diff --git a/system/desktop/home-manager.nix b/system/desktop/home-manager.nix index b573f68..ca561df 100644 --- a/system/desktop/home-manager.nix +++ b/system/desktop/home-manager.nix @@ -36,6 +36,29 @@ in { home-manager.users.mainUser = { + home.file.".config/bugwarrior/bugwarriorrc".text = lib.generators.toINI{} { + general = { + # todo : make this a list of strings and generate a comma separated list (as one string) + target = "my-github"; + }; + my-github = { + service = "github"; + # todo : make this a attrset + "github.login" = "mrVanDalo"; + "github.token" = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken"; + "github.username" = "mrVanDalo"; + + # Instead of fetching issues and pull requests based on {{username}}’s owned repositories, you may instead get those that {{username}} is involved in. This includes all issues and pull requests where the user is the author, the assignee, mentioned in, or has commented on. To do so, add the following configuration option: + "github.involved_issues" = "True"; + + # By default, issues from all repos belonging to github.username are included. To turn this off, set: + # "github.include_user_repos" = False + + # noisy_repository is the repository you would not like issues created for: + #"github.exclude_repos" = noisy_repository + }; + }; + home.file.".zshrc".text = '' # a fix for https://github.com/NixOS/nixpkgs/issues/27587 autoload -U compinit && compinit