helm/home/profiles/task/default.nix

16 lines
540 B
Nix
Raw Normal View History

2022-09-18 15:13:50 -07:00
{ pkgs, config, lib, ... }:
{
home.file = {
# WARN ugly hack
# taskwarrior needs write access to this file for centexts
# this way, we get a copy of the file, and we make sure it's writable
2022-09-18 15:13:50 -07:00
".taskrc".source = ./taskrc;
".taskrc".executable = true;
".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
2022-09-18 15:13:50 -07:00
".local/bin/task-note".source = ./bin/task-note.py;
".task/keys/ca.cert".source = ./ca.cert;
".task/keys/public.cert".source = ./public.cert;
2022-09-18 15:13:50 -07:00
};
}