From 77ce3fb0cd20c45ae92e513f40fbb8b1c838d303 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 26 Dec 2019 12:55:02 +1300 Subject: [PATCH] bugwarrior: try to add it but it does not work --- modules/programs/taskwarrior.nix | 3 +++ system/desktop/home-manager.nix | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) 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