From cacaeac4d12885d0fb26e40d8c12d00c9237ac65 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 1 Oct 2023 22:37:43 +0200 Subject: feat(hm/conf/taskwarrior): Add taskserver based syncing --- hm/soispha/conf/taskwarrior/default.nix | 21 ++++++++++++++++++++- hm/soispha/conf/taskwarrior/taskd/user_id.nix | Bin 0 -> 84 bytes 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 hm/soispha/conf/taskwarrior/taskd/user_id.nix (limited to 'hm') 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 Binary files /dev/null and b/hm/soispha/conf/taskwarrior/taskd/user_id.nix differ -- cgit 1.4.1