use systemd network

This commit is contained in:
jopejoe1 2024-04-25 14:54:14 +02:00
parent b0f7166e12
commit ce98dc1481
2 changed files with 65 additions and 14 deletions

View file

@ -18,13 +18,11 @@ in {
systemd.services."moodle-dl" = {
script = ''
${lib.getExe pkgs.moodle-dl} --path /var/moodle-dl
${lib.getExe pkgs.git} -C /var/moodle-dl add .
${
lib.getExe pkgs.git
} -C /var/moodle-dl commit -m "moodle-dl updated on `$(${pkgs.coreutils}/bin/date)`"
moodle-dl --path /var/lib/moodle-dl
git -C /var/lib/moodle-dl add .
git -C /var/lib/moodle-dl commit -m "moodle-dl updated on `$(date)`"
'';
path = [ pkgs.openssh ];
path = with pkgs; [ openssh moodle-dl git coreutils ];
serviceConfig = {
Type = "oneshot";
User = "root";