diff --git a/hosts/hetzner-vm/profiles/invidious.nix b/hosts/hetzner-vm/profiles/invidious.nix index 1ab9747..55b90ee 100644 --- a/hosts/hetzner-vm/profiles/invidious.nix +++ b/hosts/hetzner-vm/profiles/invidious.nix @@ -38,7 +38,7 @@ in { systemd.services.invidious.serviceConfig = { Restart = "always"; - RuntimeMaxSec = "1200"; + RuntimeMaxSec = "4800"; }; services.nginx.virtualHosts."invidious.owo.monster" = { diff --git a/overlay/default.nix b/overlay/default.nix index f9993b2..f223f46 100644 --- a/overlay/default.nix +++ b/overlay/default.nix @@ -7,5 +7,4 @@ final: prev: { lsquic = final.callPackage ./invidious/lsquic.nix { }; videojs = final.callPackage ./invidious/videojs.nix { }; }; - } diff --git a/overlay/invidious/update.sh b/overlay/invidious/update.sh index 4810534..a9178f1 100755 --- a/overlay/invidious/update.sh +++ b/overlay/invidious/update.sh @@ -51,7 +51,7 @@ fi json_set '.invidious.version' "$new_version" json_set '.invidious.rev' "$new_rev" -new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "$pkg") +new_sha256=$(nix-prefetch -I 'nixpkgs=' "$pkg") json_set '.invidious.sha256' "$new_sha256" commit_msg="$pkg: $old_version -> $new_version" @@ -77,7 +77,7 @@ else if [ "$lsquic_old_version" != "$lsquic_new_version" ]; then info "Updating lsquic to $lsquic_new_version..." json_set '.lsquic.version' "$lsquic_new_version" - lsquic_new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "${pkg}.lsquic") + lsquic_new_sha256=$(nix-prefetch -I 'nixpkgs=' "${pkg}.lsquic") json_set '.lsquic.sha256' "$lsquic_new_sha256" info "Updating boringssl..." @@ -85,12 +85,10 @@ else boringssl_new_rev=$(curl -LSsf "https://github.com/litespeedtech/lsquic/raw/v${lsquic_new_version}/README.md" \ | grep -Pom1 '(?<=^git checkout ).*') json_set '.boringssl.rev' "$boringssl_new_rev" - boringssl_new_sha256=$(nix-prefetch -I 'nixpkgs=../../..' "${pkg}.lsquic.boringssl") + boringssl_new_sha256=$(nix-prefetch -I 'nixpkgs=' "${pkg}.lsquic.boringssl") json_set '.boringssl.sha256' "$boringssl_new_sha256" commit_msg="$commit_msg lsquic: $lsquic_old_version -> $lsquic_new_version" fi fi - -git commit --verbose --message "$commit_msg" -- versions.json shards.nix diff --git a/overlay/invidious/versions.json b/overlay/invidious/versions.json index 6df91c3..0381f66 100644 --- a/overlay/invidious/versions.json +++ b/overlay/invidious/versions.json @@ -4,9 +4,9 @@ "sha256": "sha256-EU6T9yQCdOLx98Io8o01rEsgxDFF/Xoy42LgPopD2/A=" }, "invidious": { - "rev": "09942dee6621e7047a63dffcc61b3bbf78cef2c6", + "rev": "47cc26cb3c5862e6ae96f89882ee08c6a8185672", "sha256": "sha256-0Cb1Qsn6vnrzd4pZm1GZxlVQNn5dYKUR/xWMCG37GSk=", - "version": "unstable-2022-11-02" + "version": "unstable-2022-11-16" }, "lsquic": { "sha256": "sha256-hG8cUvhbCNeMOsKkaJlgGpzUrIx47E/WhmPIdI5F3qM=",