adding sops for taskchamp

This commit is contained in:
Matt Nish-Lapidus 2025-03-29 14:36:03 -04:00
parent 09890eae60
commit 60c414fca1
4 changed files with 26 additions and 11 deletions

View file

@ -29,7 +29,7 @@
];
sessionVariables = {
LISTEN = 33034;
LISTEN = "media-server:33034";
DATA_DIR = "/home/media/.local/share/task-sync";
};
@ -52,7 +52,6 @@ sync.server.client_id = ${config.sops.placeholder.taskchamp-id}
sync.encryption_secret = ${config.sops.placeholder.taskchamp-key}
'';
};
programs = {
home-manager.enable = true;
@ -62,6 +61,20 @@ sync.encryption_secret = ${config.sops.placeholder.taskchamp-key}
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 --snapshot-days 1 --snapshot-versions 30";
};
};
};
#custom script executables