diff --git a/nixos/hosts/backups-rpi4/backup-script.nix b/nixos/hosts/backups-rpi4/backup-script.nix index ff0b7466..cb290276 100644 --- a/nixos/hosts/backups-rpi4/backup-script.nix +++ b/nixos/hosts/backups-rpi4/backup-script.nix @@ -130,6 +130,7 @@ payload="{\"message\": \"Backup completed\nDate: `date`\n`df -h | grep sda`\n`df curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload" ''; + rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" '' #!${pkgs.stdenv.shell} # Send the gotify notification: @@ -195,7 +196,6 @@ payload="{\"message\": \"Data Vol Backup completed\nDate: `date`\n`df -h | grep curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload" ''; - ''; in { environment.systemPackages = [