nix config
1{ pkgs, config, lib, ... }:
2
3{
4 home.file = {
5 # Because the below is inconsistent, I turn it off once I have a copy in place.
6 ".taskrc".enable = true;
7 # WARN ugly hack
8 # taskwarrior needs write access to this file for centexts
9 # this way, we get a copy of the file, and we make sure it's writable
10 ".taskrc".source = ./taskrc;
11 # ".taskrc".executable = true;
12 # ".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
13 ".task/keys/ca.cert".source = ./ca.cert;
14 ".task/keys/public.cert".source = ./public.cert;
15
16 ".local/bin/task-note".source = ./bin/task-note.py;
17 ".local/bin/set-idea".source = ./bin/set-idea.sh;
18 };
19}