diff --git a/home/services/backup-home.nix b/home/services/backup-home.nix index 0555f84..0072cbe 100644 --- a/home/services/backup-home.nix +++ b/home/services/backup-home.nix @@ -6,7 +6,10 @@ let echo "========== BACKUP HOME STARTING ==========" export RESTIC_PASSWORD="gunter.home.2rjus.net" export RESTIC_REPOSITORY="rest:http://10.69.12.52:8000/gunter.home.2rjus.net" - GOTIFY_TOKEN=$(<"$XDG_RUNTIME_DIR/gotify_backup_home.txt") + GOTIFY_TOKEN=$(<"$XDG_RUNTIME_DIR/secrets/gotify_backup_home") + + echo "DEBUG: GOTIFY_TOKEN=$GOTIFY_TOKEN" + echo "DEBUG: BUSADDR=$DBUS_SESSION_BUS_ADDRESS" if [ -z "$GOTIFY_TOKEN" ]; then ${pkgs.libnotify}/bin/notify-send -u critical "Backup issue" "No Gotify token found" @@ -93,7 +96,7 @@ in Persistent = true; }; Install = { - WantedBy = [ "timers.target" ]; + WantedBy = [ "timers.target" "graphical-session.target" ]; }; }; }