mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
use systemd network
This commit is contained in:
parent
b0f7166e12
commit
ce98dc1481
2 changed files with 65 additions and 14 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue