1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +01:00

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.
This commit is contained in:
Bjørn Forsman 2021-07-23 21:14:27 +02:00 committed by Robert Helgesson
parent ddeeb031fd
commit 6c984bd675
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -98,8 +98,6 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ pkgs.taskwarrior ]; home.packages = [ pkgs.taskwarrior ];
home.file."${cfg.dataLocation}/.keep".text = "";
home.file.".taskrc".text = '' home.file.".taskrc".text = ''
data.location=${cfg.dataLocation} data.location=${cfg.dataLocation}
${includeTheme cfg.colorTheme} ${includeTheme cfg.colorTheme}