Add auto task updates
This commit is contained in:
parent
2a8a751452
commit
7358c87e23
3 changed files with 29 additions and 0 deletions
|
@ -21,6 +21,7 @@ imports = [
|
||||||
./modules/eventd.nix
|
./modules/eventd.nix
|
||||||
./modules/unlock.nix
|
./modules/unlock.nix
|
||||||
./modules/weechat
|
./modules/weechat
|
||||||
|
./modules/update_tasks.nix
|
||||||
../common
|
../common
|
||||||
# ./sort-mail.nix
|
# ./sort-mail.nix
|
||||||
# ./morgenreport.nix
|
# ./morgenreport.nix
|
||||||
|
|
27
home-manager/modules/update_tasks.nix
Normal file
27
home-manager/modules/update_tasks.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, lib, pkgs , ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
|
||||||
|
in {
|
||||||
|
options.m-0.update_tasks.enable = mkEnableOption "Update Tasks";
|
||||||
|
config = mkIf config.m-0.update_tasks.enable {
|
||||||
|
systemd.user = {
|
||||||
|
services.update_tasks = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Update Tasks";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "oneshot";
|
||||||
|
Environment="PATH=${pkgs.taskwarrior}/bin:${pkgs.eventd}/bin";
|
||||||
|
ExecStart="${pkgs.rust_scripts}/bin/update_tasks";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
timers.update_tasks = {
|
||||||
|
Timer = {
|
||||||
|
OnCalendar = "hourly";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -13,6 +13,7 @@ m-0.accounting.enable = true;
|
||||||
m-0.graphical.enable = true;
|
m-0.graphical.enable = true;
|
||||||
m-0.rustdev.enable = true;
|
m-0.rustdev.enable = true;
|
||||||
m-0.taskwarrior.enable = true;
|
m-0.taskwarrior.enable = true;
|
||||||
|
m-0.update_tasks.enable = true;
|
||||||
m-0.eventd.enable = true;
|
m-0.eventd.enable = true;
|
||||||
m-0.unlocker = [ {
|
m-0.unlocker = [ {
|
||||||
name = "hera";
|
name = "hera";
|
||||||
|
|
Loading…
Reference in a new issue