nixos-config/nixos/configs/pepe/taskwarrior-pushover.nix
2022-07-23 13:22:23 +02:00

62 lines
1.9 KiB
Nix

{ config, lib, pkgs, ... }:
{
#sops.secrets.pushoverApiToken = {
# owner = "taskwarrior-pushover";
# key = "pushoverApiToken";
#};
#sops.secrets.pushoverUserKey = {
# owner = "taskwarrior-pushover";
# key = "pushoverUserKey";
#};
#sops.secrets.pushoverTaskwarriorCa = {
# owner = "taskwarrior-pushover";
# key = "taskwarriorCa";
#};
#sops.secrets.pushoverTaskwarriorCertificate = {
# owner = "taskwarrior-pushover";
# key = "taskwarriorCertificate";
#};
#sops.secrets.pushoverTaskwarriorKey = {
# owner = "taskwarrior-pushover";
# key = "taskwarriorKey";
#};
#services.taskwarrior-pushover = {
# enable = false;
# recurrence = "off";
# onCalendar = "06:30:00";
# server = "taskd.ingolf-wagner.de:53589";
# pushoverApiTokenFile = config.sops.secrets.pushoverApiToken.path;
# pushoverUserKeyFile = config.sops.secrets.pushoverUserKey.path;
# caFile = config.sops.secrets.pushoverTaskwarriorCa.path;
# certificateFile = config.sops.secrets.pushoverTaskwarriorCertificate.path;
# keyFile = config.sops.secrets.pushoverTaskwarriorKey.path;
# credentials = "1337/palo/ed0fdbe8-2dc3-408b-84cb-d07d363bccd2";
#};
sops.secrets.autotagTaskwarriorCa = {
owner = "taskwarrior-autotag";
key = "taskwarriorCa";
};
sops.secrets.autotagTaskwarriorCertificate = {
owner = "taskwarrior-autotag";
key = "taskwarriorCertificate";
};
sops.secrets.autotagTaskwarriorKey = {
owner = "taskwarrior-autotag";
key = "taskwarriorKey";
};
services.taskwarrior-autotag = {
enable = true;
recurrence = "on";
onCalendar = "hourly";
server = "taskd.ingolf-wagner.de:53589";
caFile = config.sops.secrets.autotagTaskwarriorCa.path;
certificateFile = config.sops.secrets.autotagTaskwarriorCertificate.path;
keyFile = config.sops.secrets.autotagTaskwarriorKey.path;
credentials = "1337/palo/ed0fdbe8-2dc3-408b-84cb-d07d363bccd2";
};
}