diff options
author | Soispha <soispha@vhack.eu> | 2023-10-01 22:37:43 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-01 22:49:12 +0200 |
commit | cacaeac4d12885d0fb26e40d8c12d00c9237ac65 (patch) | |
tree | 28ce9b2285f2aa0c173c435ded53d7ae97b685c8 /hm | |
parent | fix(hm/conf/lf/keybinds): Add keymap to go to nixos-server config (diff) | |
download | nixos-config-cacaeac4d12885d0fb26e40d8c12d00c9237ac65.tar.gz nixos-config-cacaeac4d12885d0fb26e40d8c12d00c9237ac65.zip |
feat(hm/conf/taskwarrior): Add taskserver based syncing
Diffstat (limited to 'hm')
-rw-r--r-- | hm/soispha/conf/taskwarrior/default.nix | 21 | ||||
-rw-r--r-- | hm/soispha/conf/taskwarrior/taskd/user_id.nix | bin | 0 -> 84 bytes |
2 files changed, 20 insertions, 1 deletions
diff --git a/hm/soispha/conf/taskwarrior/default.nix b/hm/soispha/conf/taskwarrior/default.nix index 3d647482..7ab1d50c 100644 --- a/hm/soispha/conf/taskwarrior/default.nix +++ b/hm/soispha/conf/taskwarrior/default.nix @@ -1,8 +1,15 @@ -{...}: { +{ + nixosConfig, + ... +}: { imports = [ ./hooks ]; + services.taskwarrior-sync = { + enable = true; + }; + programs.taskwarrior = let mkContext = project: { inherit (project) name; @@ -44,6 +51,18 @@ color = true; inherit context; + + taskd = { + server = "taskserver.vhack.eu:53589"; + trust = "strict"; + ca = + nixosConfig.age.secrets.taskserverCA.path; + key = + nixosConfig.age.secrets.taskserverPrivate.path; + certificate = + nixosConfig.age.secrets.taskserverPublic.path; + credentials = import ./taskd/user_id.nix {}; + }; }; }; } diff --git a/hm/soispha/conf/taskwarrior/taskd/user_id.nix b/hm/soispha/conf/taskwarrior/taskd/user_id.nix new file mode 100644 index 00000000..ab2567e6 --- /dev/null +++ b/hm/soispha/conf/taskwarrior/taskd/user_id.nix Binary files differ |