From 80e74d3283343d6315d796bb855f843e7af8f584 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 24 Nov 2025 18:47:10 +0100 Subject: [PATCH] enable recurrence only on one hosts per 'man task-sync' --- home/hosts/andromache/default.nix | 20 +++++++++++++++++++- home/modules/taskwarrior.nix | 2 +- hosts/andromache/default.nix | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index 8548ecf..2d93f14 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -1 +1,19 @@ -import ../astyanax +{ + lib, + inputs, + config, + pkgs, + ... +}: + +{ + imports = [ + (import ../astyanax { + inherit inputs; + inherit config; + inherit pkgs; + }) + ]; + + programs.taskwarrior.config.recurrence = lib.mkForce "on"; +} diff --git a/home/modules/taskwarrior.nix b/home/modules/taskwarrior.nix index 3b1f603..6349059 100644 --- a/home/modules/taskwarrior.nix +++ b/home/modules/taskwarrior.nix @@ -44,7 +44,7 @@ # config.sops.secrets."taskwarrior_sync_encryption_secret".path # }"; # }; - recurrence = "off"; # TODO: enable only on andromache + recurrence = "off"; }; extraConfig = "include ${config.sops.templates."taskrc.d/sync".path}"; }; diff --git a/hosts/andromache/default.nix b/hosts/andromache/default.nix index 552859b..f16dad0 100644 --- a/hosts/andromache/default.nix +++ b/hosts/andromache/default.nix @@ -87,6 +87,7 @@ in useGlobalPkgs = true; useUserPackages = true; users.${username} = import ../../home/hosts/andromache { + inherit lib; inherit inputs; inherit config; inherit pkgs;