fixing bugwarrior
This commit is contained in:
parent
4a3334895d
commit
07d807c4db
5 changed files with 97 additions and 37 deletions
|
@ -972,11 +972,11 @@
|
||||||
},
|
},
|
||||||
"private_assets": {
|
"private_assets": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1682948724,
|
"lastModified": 1699371582,
|
||||||
"narHash": "sha256-hTSiqRTpKuPksq5vsAO0pIuHdYIaL5EGrmN0T6C3oog=",
|
"narHash": "sha256-/Axuxxqnmrinj2HwVJWz7imGRdzgxk6HGrr2341o8LE=",
|
||||||
"ref": "main",
|
"ref": "main",
|
||||||
"rev": "84460fabef41115fa12323c9eaf89abfbe76f22f",
|
"rev": "3d1c3f6abfebf5750dd7997d06283db9583213dc",
|
||||||
"revCount": 10,
|
"revCount": 14,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
|
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
|
||||||
},
|
},
|
||||||
|
|
6
nixos/components/README.md
Normal file
6
nixos/components/README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# components concept
|
||||||
|
|
||||||
|
- components are kinda opinionated.
|
||||||
|
- should be project agnostic (e.g.: configure bugwarrior via options but leave specifics out).
|
||||||
|
- `component.<toplevel>.enabled` should usually be the default for all it subcomponents (`comonent.<topleve>.<subcomponent>.enabled`).
|
||||||
|
- But default should make sense here!
|
|
@ -1,29 +0,0 @@
|
||||||
[general]
|
|
||||||
targets = terranix, github_private
|
|
||||||
static_fields = priority
|
|
||||||
log.level = INFO
|
|
||||||
|
|
||||||
[terranix]
|
|
||||||
service = github
|
|
||||||
github.login = mrVanDalo
|
|
||||||
github.token = @oracle:eval:/nix/store/zhs5nd260m8s9nn8w4y9v8isfvclq9i3-password-store-1.7.4/bin/pass development/github/mrVanDalo/bugwarriorAccessToken
|
|
||||||
github.username = mrVanDalo
|
|
||||||
github.default_priority =
|
|
||||||
github.description_template = {{githubtitle}} {{githuburl}}
|
|
||||||
github.add_tags = github
|
|
||||||
github.project_name = terranix
|
|
||||||
github.involved_issues = True
|
|
||||||
github.query = org:terranix is:open
|
|
||||||
github.include_user_issues = False
|
|
||||||
github.include_user_repos = False
|
|
||||||
|
|
||||||
[github_private]
|
|
||||||
service = github
|
|
||||||
github.login = mrVanDalo
|
|
||||||
github.token = @oracle:eval:/nix/store/zhs5nd260m8s9nn8w4y9v8isfvclq9i3-password-store-1.7.4/bin/pass development/github/mrVanDalo/bugwarriorAccessToken
|
|
||||||
github.username = mrVanDalo
|
|
||||||
github.description_template = {{githubtitle}} {{githuburl}}
|
|
||||||
github.add_tags = github
|
|
||||||
github.involved_issues = True
|
|
||||||
github.include_user_issues = True
|
|
||||||
github.include_user_repos = True
|
|
|
@ -1,11 +1,40 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
|
with types;
|
||||||
|
let
|
||||||
|
mkMagicMergeOption = { description ? "", example ? { }, default ? { }, apply ? id, ... }:
|
||||||
|
mkOption {
|
||||||
|
inherit example description default apply;
|
||||||
|
type = with lib.types;
|
||||||
|
let
|
||||||
|
valueType = nullOr
|
||||||
|
(oneOf [
|
||||||
|
bool
|
||||||
|
int
|
||||||
|
float
|
||||||
|
str
|
||||||
|
(attrsOf valueType)
|
||||||
|
(listOf valueType)
|
||||||
|
]) // {
|
||||||
|
description = "bool, int, float or str";
|
||||||
|
emptyValue.value = { };
|
||||||
|
};
|
||||||
|
in
|
||||||
|
valueType;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.components.gui.taskwarrior.enable = mkOption {
|
options.components.gui.taskwarrior.enable = mkOption {
|
||||||
type = lib.types.bool;
|
type = bool;
|
||||||
default = config.components.gui.enable;
|
default = config.components.gui.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
options.components.gui.taskwarrior.config = mkMagicMergeOption {
|
||||||
|
type = attrs;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
|
|
||||||
config = mkIf (config.components.gui.taskwarrior.enable) {
|
config = mkIf (config.components.gui.taskwarrior.enable) {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -33,10 +62,27 @@ with lib;
|
||||||
${pkgs.khal}/bin/ikhal
|
${pkgs.khal}/bin/ikhal
|
||||||
'')
|
'')
|
||||||
|
|
||||||
python3Packages.bugwarrior
|
# todo : before deleting this, put it in trilium
|
||||||
|
(python3Packages.bugwarrior.overrideAttrs (old: {
|
||||||
|
version = "develop";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "ralphbean";
|
||||||
|
repo = "bugwarrior";
|
||||||
|
rev = "eb19a702a698f9c8c3ce2a1fe41f35872d9ae398";
|
||||||
|
sha256 = "sha256-Geon+ddE58WJ10L4unotzvmZj1Ye0yjZHVQgrR2YWgE=";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||||
|
python3Packages.pydantic
|
||||||
|
python3Packages.tomli
|
||||||
|
python3Packages.email-validator
|
||||||
|
python3Packages.packaging
|
||||||
|
];
|
||||||
|
}))
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.mainUser.home.file.".config/bugwarrior/bugwarriorrc".source = ./bugwarriorc.toml;
|
#home-manager.users.mainUser.home.file.".config/bugwarrior/bugwarriorrc".source = ./bugwarriorc.ini;
|
||||||
|
#home-manager.users.mainUser.home.file.".config/bugwarrior/bugwarriorrc".source = (pkgs.formats.toml { }).generate "bugwarriorrc.toml" config.components.gui.taskwarrior.config;
|
||||||
|
home-manager.users.mainUser.home.file.".config/bugwarrior/bugwarrior.toml".source = (pkgs.formats.toml { }).generate "bugwarriorrc.toml" config.components.gui.taskwarrior.config;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
||||||
|
@ -37,6 +38,42 @@
|
||||||
components.network.wifi.enable = true;
|
components.network.wifi.enable = true;
|
||||||
components.terminal.enable = true;
|
components.terminal.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
components.gui.taskwarrior.config = {
|
||||||
|
general = {
|
||||||
|
targets = [ "terranix" "github_private" ];
|
||||||
|
#targets = [ "terranix" "github_private" "jobrad" ];
|
||||||
|
static_fields = "priority";
|
||||||
|
log_level = "INFO";
|
||||||
|
};
|
||||||
|
terranix = {
|
||||||
|
service = "github";
|
||||||
|
login = "mrVanDalo";
|
||||||
|
token = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken";
|
||||||
|
username = "mrVanDalo";
|
||||||
|
default_priority = "";
|
||||||
|
description_template = "{{githubtitle}} {{githuburl}}";
|
||||||
|
add_tags = "github";
|
||||||
|
project_template = "terranix";
|
||||||
|
involved_issues = true;
|
||||||
|
query = "org:terranix is:open";
|
||||||
|
include_user_issues = false;
|
||||||
|
include_user_repos = false;
|
||||||
|
};
|
||||||
|
github_private = {
|
||||||
|
service = "github";
|
||||||
|
login = "mrVanDalo";
|
||||||
|
token = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken";
|
||||||
|
username = "mrVanDalo";
|
||||||
|
description_template = "{{githubtitle}} {{githuburl}}";
|
||||||
|
add_tags = "github";
|
||||||
|
involved_issues = true;
|
||||||
|
include_user_issues = true;
|
||||||
|
include_user_repos = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
users.users.mainUser.extraGroups = [ "pipewire" ];
|
users.users.mainUser.extraGroups = [ "pipewire" ];
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue