test dhyan timer is deployable

This commit is contained in:
Anish L 2022-07-13 18:41:03 +10:00
parent 922fa72ca5
commit 77ccca14bf

View file

@ -1,8 +1,11 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# TODO scrappy script that requires dhyan be cloned to /home/anish/usr/dhyan # TODO
# dhyan needs secrets, and internet access to run, havent figured that out with nix yet # scrappy script that requires dhyan be cloned to /home/anish/usr/dhyan
# dhyan needs secrets, and internet access to install dependencies, havent figured that out with nix yet
# dhyan also depends on jdk11, but that's only to install dependencies, run `bb -m dhyan.main` once before installing this script
# If you've updated dhyan, you'll want to cd to /home/anish/usr/dhyan and run git pull
systemd.services.dhyan = { systemd.services.dhyan = {
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
path = [ path = [
@ -23,6 +26,6 @@
systemd.timers.dhyan = { systemd.timers.dhyan = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
partOf = [ "kitaab-sync.service" ]; partOf = [ "kitaab-sync.service" ];
timerConfig.OnCalendar = [ "*08:00:00" ]; timerConfig.OnCalendar = [ "08:00:00" ];
}; };
} }