muneem is ready 🙇🏽

This commit is contained in:
Anish Lakhwara 2022-12-01 13:56:24 +10:00
parent efd2e79e3b
commit 63ff35710e
2 changed files with 37 additions and 2 deletions

View file

@ -148,9 +148,9 @@
};
suites = with profiles; rec {
base = [ core users.root users.anish ];
sealight = [ base server metrics gitea rss-bridge mount-mossnet ]; # matrix
sealight = [ base server metrics gitea rss-bridge mount-mossnet ];
lituus = [ base server metrics sealight-website matrix wireguard-server ];
mossnet = [ base server taskd shaarli dns monitoring nfs gonic headphones radicale seafile syncthing dhyan calibre wallabag finance ]; # hpi sync.music
mossnet = [ base server taskd shaarli dns monitoring nfs gonic headphones radicale seafile syncthing dhyan calibre wallabag finance muneem ]; # hpi sync.music
cube = [ base site server ];
graphical = [ base bluetooth music sync.kitaab sync.website sync.cal wifi desktop mimetypes ];
curve = [ graphical secrets syncthing ];

View file

@ -0,0 +1,35 @@
{ 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
# muneem 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 muneem, you'll want to cd to /home/anish/usr/dhyan and run git pull
systemd.services.muneem = {
serviceConfig.Type = "oneshot";
path = with pkgs; [
babashka
git
jdk11
curl
chromedriver
chromium
];
startAt = "Tue *03:00: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 = [ "Tue *03:00:00" ];
};
}