big update and trying taskwarrior again
This commit is contained in:
parent
0768914004
commit
cbf950d650
3 changed files with 51 additions and 24 deletions
|
@ -10,6 +10,7 @@
|
|||
music
|
||||
langs
|
||||
emacs
|
||||
taskwarrior
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
shell-conf # shell, shell utils, cli tools, libs, tui's
|
||||
git-conf
|
||||
beets
|
||||
taskwarrior
|
||||
];
|
||||
|
||||
home = {
|
||||
|
@ -34,6 +35,17 @@
|
|||
age.keyFile = "/home/media/.config/sops/age/keys.txt"; # must have no password!
|
||||
|
||||
defaultSopsFile = ../emenel/secrets.yaml;
|
||||
|
||||
secrets = {
|
||||
taskchamp-id = {};
|
||||
taskchamp-key = {};
|
||||
};
|
||||
|
||||
templates."taskchamp".content =
|
||||
''
|
||||
sync.server.client_id = ${config.sops.placeholder.taskchamp-id}
|
||||
sync.encryption_secret = ${config.sops.placeholder.taskchamp-key}
|
||||
'';
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
@ -44,6 +56,20 @@
|
|||
systemd.user = {
|
||||
enable = true;
|
||||
startServices = "sd-switch"; # auto reload services when home is rebuilt
|
||||
|
||||
services.taskchampion-sync-server = {
|
||||
Unit = {
|
||||
Description = "taskchamp";
|
||||
After = [ "network.target" ];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.taskchampion-sync-server}/bin/taskchampion-sync-server --listen media-server:33043 --data-dir /home/media/.local/share/task-sync --snapshot-days 1 --snapshot-versions 30";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#custom script executables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue