europa: set path for "cron" jobs
This commit is contained in:
parent
691b81e70e
commit
f1817ab265
@ -5,7 +5,6 @@ let
|
|||||||
config.users.users.peerix.name
|
config.users.users.peerix.name
|
||||||
else
|
else
|
||||||
"root";
|
"root";
|
||||||
gitSync = "${pkgs.git-sync}/bin/git-sync";
|
|
||||||
mkCronScript = name: src: ''
|
mkCronScript = name: src: ''
|
||||||
. /etc/profile;
|
. /etc/profile;
|
||||||
set -x
|
set -x
|
||||||
@ -15,18 +14,21 @@ let
|
|||||||
jobs = [
|
jobs = [
|
||||||
{
|
{
|
||||||
name = "brain";
|
name = "brain";
|
||||||
script = "cd ~/Brain && ${gitSync}";
|
script = "cd ~/Brain && git sync";
|
||||||
startAt = "*:0/2";
|
startAt = "*:0/2";
|
||||||
|
path = [ pkgs.git pkgs.git-sync ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "org";
|
name = "org";
|
||||||
script = "(cd ~/org && ${gitSync})";
|
script = "(cd ~/org && git sync)";
|
||||||
startAt = "*:0/5";
|
startAt = "*:0/5";
|
||||||
|
path = [ pkgs.git pkgs.git-sync ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "taskobs";
|
name = "taskobs";
|
||||||
script = "${pkgs.taskobs}/bin/taskobs";
|
script = "taskobs";
|
||||||
startAt = "*:0/30";
|
startAt = "*:0/30";
|
||||||
|
path = [ pkgs.perl pkgs.taskobs ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
jobToService = job: {
|
jobToService = job: {
|
||||||
@ -34,6 +36,7 @@ let
|
|||||||
value = {
|
value = {
|
||||||
script = mkCronScript "${job.name}_script" job.script;
|
script = mkCronScript "${job.name}_script" job.script;
|
||||||
inherit (job) startAt;
|
inherit (job) startAt;
|
||||||
|
inherit (job) path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
Loading…
Reference in New Issue
Block a user