helm/hosts/profiles/muneem/default.nix

36 lines
1,023 B
Nix
Raw Normal View History

2022-11-30 19:56:24 -08:00
{ pkgs, ... }:
{
# TODO
# scrappy script that requires muneem be cloned to /home/anish/usr/muneem
# you also gotta setup .envrc and add all the secrets there lol
# muneem needs secrets, and internet access to install dependencies, havent figured that out with nix yet
2022-11-30 20:49:22 -08:00
# muneem also depends on jdk11, but that's only to install dependencies, run `bb -m muneem.main` once before installing this script
# If you've updated muneem, you'll want to cd to /home/anish/usr/muneem and run git pull
2022-11-30 19:56:24 -08:00
systemd.services.muneem = {
serviceConfig.Type = "oneshot";
path = with pkgs; [
babashka
git
jdk11
curl
chromedriver
chromium
];
startAt = "Thu 03:00:00";
2022-11-30 19:56:24 -08:00
script = ''
cd /home/anish/usr/muneem
source .envrc
bb -m muneem.main
'';
serviceConfig = {
User = "anish";
};
};
systemd.timers.muneem = {
wantedBy = [ "timers.target" ];
partOf = [ "muneem.service" ];
timerConfig.OnCalendar = [ "Thu 03:00:00" ];
2022-11-30 19:56:24 -08:00
};
}