nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

commit c875367a53fadf992e5623cf9e7557e09715bafc
parent 083cd53f638bae1c104f7e846d7290e385e5e873
Author: mtmn <miro@haravara.org>
Date:   Thu, 18 Jun 2026 11:13:00 +0200

backup: rework plakar

Diffstat:
Mhosts/nixaran/configuration.nix | 0
Mhosts/void/default.nix | 1+
Mmodules/mixins/dotfiles/config/newsraft/feeds | 3+++
Mmodules/mixins/dotfiles/config/shell/rc/functions | 9++++++---
4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/hosts/nixaran/configuration.nix b/hosts/nixaran/configuration.nix Binary files differ. diff --git a/hosts/void/default.nix b/hosts/void/default.nix @@ -74,6 +74,7 @@ sshs riemann riemann-tools + flyctl ] (with python314Packages; [yt-dlp-ejs]) ]; diff --git a/modules/mixins/dotfiles/config/newsraft/feeds b/modules/mixins/dotfiles/config/newsraft/feeds @@ -223,3 +223,6 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCriil4aussYUAGVwpm_zI9w Sar https://www.youtube.com/feeds/videos.xml?channel_id=UCUgPElwvOMcRDJpmlbJihsA nebulaisacoolguy https://www.youtube.com/feeds/videos.xml?channel_id=UCJLLl6AraX1POemgLfhirwg Bits inside by René Rebe https://www.youtube.com/feeds/videos.xml?channel_id=UCIgNWXsJcFwvFptmUic6wSw apalrd's adventures +https://www.youtube.com/feeds/videos.xml?channel_id=UC_ML5xP23TOWKUcc-oAE_Eg Hussein Nasser +https://www.youtube.com/feeds/videos.xml?channel_id=UCQoOmu6mKZkXTnwZcpD8Ciw Jason Schreier +https://www.youtube.com/feeds/videos.xml?channel_id=UCAwT-7B6StW_xzXPku6v7MQ Mo Bitar diff --git a/modules/mixins/dotfiles/config/shell/rc/functions b/modules/mixins/dotfiles/config/shell/rc/functions @@ -10,9 +10,12 @@ nixpkgs_cache_index_update() { fetch_rss_youtube() { CHANNEL_URL="$1" if [ -n "$CHANNEL_URL" ]; then - curl -s "$CHANNEL_URL" | - grep -Po '<link rel="canonical" href="https://www.youtube.com/channel/\K.*?(?=">)' | - xargs -I@ echo 'https://www.youtube.com/feeds/videos.xml?channel_id=@' | wl-copy + page="$(curl -s "$CHANNEL_URL")" + channel_id="$(echo "$page" | + grep -Po '<link rel="canonical" href="https://www.youtube.com/channel/\K.*?(?=">)')" + channel_name="$(echo "$page" | + grep -Po '<meta property="og:title" content="\K.*?(?=">)')" + echo "https://www.youtube.com/feeds/videos.xml?channel_id=$channel_id $channel_name" | wl-copy fi }