curve: allow .taskrc to be writeable, enabling contexts

This commit is contained in:
Anish Lakhwara
2023-06-04 19:02:03 +10:00
parent 067c583378
commit e92edf8366
2 changed files with 14 additions and 3 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
{ pkgs, config, lib, ... }:
{
# If you're setting up taskwarrior again, there's a task-setup.sh script in seafile
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
".taskrc".source = ./taskrc;
".taskrc".executable = true;
".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
".local/bin/task-note".source = ./bin/task-note.py;
".task/keys/ca.cert".source = ./ca.cert;
".task/keys/public.cert".source = ./public.cert;