add taskwarrior autotag

This commit is contained in:
Ingolf Wagner 2023-11-18 12:51:14 +01:00
parent a0f54376ab
commit e7edad891f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 40 additions and 3 deletions

View file

@ -22,11 +22,11 @@
#./mail-fetcher.nix #./mail-fetcher.nix
#./borg.nix #./borg.nix
#./taskwarrior-pushover.nix ./taskwarrior-autotag.nix
./media-share.nix ./media-share.nix
./media-audiobookshelf.nix ./media-audiobookshelf.nix
./media-tdarr.nix #./media-tdarr.nix
./media-jellyfin.nix ./media-jellyfin.nix
./media-youtube.nix ./media-youtube.nix
./media-castget.nix ./media-castget.nix

View file

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
{
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 = "off";
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/ad40dce8-4b38-4011-b032-60a91b6f22cd";
};
}

View file

@ -8,9 +8,18 @@
}; };
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs < all them plugins # https://github.com/influxdata/telegraf/tree/master/plugins/inputs < all them plugins
inputs = { inputs = {
cpu = { }; cpu = {
percpu = true;
totalcpu = true;
};
disk = { };
diskio = { }; diskio = { };
kernel = { };
mem = { };
processes = { }; processes = { };
netstat = { };
net = { };
system = { };
systemd_units = { }; systemd_units = { };
nginx.urls = [ "http://localhost/nginx_status" ]; nginx.urls = [ "http://localhost/nginx_status" ];
}; };