From 6c984bd67511facb1cd689789f958614b028b353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 23 Jul 2021 21:14:27 +0200 Subject: [PATCH] taskwarrior: don't create dataLocation with home.file With programs.taskwarrior.dataLocation = /absolute/path (outside of $HOME) the current implementation wrongly creates $HOME/absolute/path (due to how home.file is implemented). Since taskwarrior creates the dataLocation automatically on first run, there is actually no need for HM to create that directory. Additional benefit, the .keep symlink that HM creates as a side-effect no longer appears in the taskwarrior data directory. Fixes #2207. --- modules/programs/taskwarrior.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/programs/taskwarrior.nix b/modules/programs/taskwarrior.nix index 6a887e0f5..d71a193f0 100644 --- a/modules/programs/taskwarrior.nix +++ b/modules/programs/taskwarrior.nix @@ -98,8 +98,6 @@ in { config = mkIf cfg.enable { home.packages = [ pkgs.taskwarrior ]; - home.file."${cfg.dataLocation}/.keep".text = ""; - home.file.".taskrc".text = '' data.location=${cfg.dataLocation} ${includeTheme cfg.colorTheme}