From 76274cd028c7d6f04df3ebd3ba149da2477d17c3 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 25 Dec 2023 20:18:14 +0900 Subject: [PATCH] Update --- nixos/hosts/backups-rpi4/backup-script.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [