nix

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

commit 5cfd748b9c53a0e50e6f56e7f3338474e9a51bdf
parent 0840f780ffe1c8854e75872ecf94f18604aa4979
Author: mtmn <miro@haravara.org>
Date:   Thu, 25 Jun 2026 13:30:40 +0200

fix dashboards, update flakes, feeds, etc.

Diffstat:
Mflake.lock | 18+++++++++---------
Mmodules/mixins/dotfiles/config/newsraft/feeds | 4++++
Mmodules/mixins/dotfiles/config/nvim/fnl/config/meepo.fnl | 6++----
Mmodules/mixins/dotfiles/config/shell/rc/functions | 33+++++++++++++++++----------------
Mmodules/mixins/monitoring/h2o.jsonnet | 2+-
Mmodules/mixins/monitoring/zfs_exporter.jsonnet | 2+-
6 files changed, 34 insertions(+), 31 deletions(-)

diff --git a/flake.lock b/flake.lock @@ -30,11 +30,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1782325712, - "narHash": "sha256-Yb5UneZF9v1DvKFCPS9FX0ynCgvsJTWEaoaWNdnTAv0=", + "lastModified": 1782391555, + "narHash": "sha256-rZ+p9NQgYkzi1FS3JW4lEG23dhkyXLNciaspgeB4ZGg=", "owner": "~mtmn", "repo": "corpus", - "rev": "3cafafa461a3cfa707bb5c57be92cf16bb6d522e", + "rev": "defb72c5a218bb1983f222702ee7954a2f305fb0", "type": "sourcehut" }, "original": { @@ -162,11 +162,11 @@ ] }, "locked": { - "lastModified": 1782233665, - "narHash": "sha256-h/xOtrByoA/Ak1lWHn0O1lVZz4qWYbwOSLQ8YSwQO0I=", + "lastModified": 1782423922, + "narHash": "sha256-qPNd6lUohHP5gcJhqQ7rLV87RwIx0xYR2A4Frb9Zjc4=", "owner": "nix-community", "repo": "home-manager", - "rev": "062581938b4a378a82dfbb294b494808157153a1", + "rev": "5d320ab301cfaaca7d32514f13815d19d109f5f4", "type": "github" }, "original": { @@ -342,11 +342,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1782147010, - "narHash": "sha256-RcHHrrYqh+U8UfeF9Wqrv7QQva1y6YU+k483YC+pXM4=", + "lastModified": 1782418120, + "narHash": "sha256-EYBaCJ1YjvVrx5YjSFhuD94szgOnrkqX05SZ9jM8wQE=", "owner": "~mtmn", "repo": "shirts", - "rev": "14823e8a735acd0afe8936642bc20c7d20904897", + "rev": "b78885c4292ba35b9c15abc9f312edb1ffb2d927", "type": "sourcehut" }, "original": { diff --git a/modules/mixins/dotfiles/config/newsraft/feeds b/modules/mixins/dotfiles/config/newsraft/feeds @@ -241,3 +241,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCDetdM5XDZD1xrQHDPgEg5w Dic https://www.youtube.com/feeds/videos.xml?channel_id=UCB2ATFiszUNmw6z1x67GnYw zach https://www.youtube.com/feeds/videos.xml?channel_id=UCW7jUEpYT_t0Gsf632d6_wQ clabretro https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw Sabine Hossenfelder +https://www.youtube.com/feeds/videos.xml?channel_id=UCRq87C6FUHWWaKkImDeMVBw Maple Circuit +https://www.youtube.com/feeds/videos.xml?channel_id=UCOWcZ6Wicl-1N34H0zZe38w Level1Linux +https://www.youtube.com/feeds/videos.xml?channel_id=UCpa_ZxyIl8u1TS3-rS1bTrg Als Retro Geek Lab +https://www.youtube.com/feeds/videos.xml?channel_id=UCHkYOD-3fZbuGhwsADBd9ZQ Lawrence Systems diff --git a/modules/mixins/dotfiles/config/nvim/fnl/config/meepo.fnl b/modules/mixins/dotfiles/config/nvim/fnl/config/meepo.fnl @@ -15,8 +15,6 @@ :base0E "#c792ea" :base0F "#addb67"}) -; olive - (fn bar-highlights [] (let [hl (fn [group fg bg attr] (vim.api.nvim_set_hl 0 group @@ -42,7 +40,6 @@ (hl :MiniStatuslineDevinfo :base04 :base02) (hl :MiniStatuslineFileinfo :base04 :base02) (hl :MiniStatuslineFilename :base03 :base01) - (vim.api.nvim_set_hl 0 :MiniStatuslineInactive {:link :StatusLineNC}) (hl :TabLine :base03 :base01) (hl :TabLineFill :base03 :base01) (hl :TabLineSel :base0B :base01) @@ -53,7 +50,8 @@ (hl :MiniTablineModifiedCurrent :base02 :base05 {:bold true}) (hl :MiniTablineModifiedVisible :base02 :base04 {:bold true}) (hl :MiniTablineModifiedHidden :base01 :base04) - (hl :MiniTablineTabpagesection :base01 :base0A {:bold true}))) + (hl :MiniTablineTabpagesection :base01 :base0A {:bold true}) + (vim.api.nvim_set_hl 0 :MiniStatuslineInactive {:link :StatusLineNC}))) (fn config [] ((. (require :mini.base16) :setup) {: palette :use_cterm true}) diff --git a/modules/mixins/dotfiles/config/shell/rc/functions b/modules/mixins/dotfiles/config/shell/rc/functions @@ -7,18 +7,6 @@ nixpkgs_cache_index_update() { ln -f "$filename" files } -fetch_rss_youtube() { - CHANNEL_URL="$1" - if [ -n "$CHANNEL_URL" ]; then - 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 -} - nvimrecomp() { nix_fennel_path="$HOME/src/sr.ht/nix/modules/mixins/dotfiles/config/nvim/fnl" config_path="$HOME/.config/nvim" @@ -68,10 +56,6 @@ tracklist() { done } -fetch_rss() { - url="${1?}" - curl -s "$url" | xmllint --html --xpath "//link[@type='application/rss+xml' or @type='application/atom+xml']/@href" - 2>/dev/null -} tarstamp() { : "${1?name required}" "${2?path required}" @@ -99,6 +83,23 @@ labels() { done } +ytrss() { + CHANNEL_URL="$1" + if [ -n "$CHANNEL_URL" ]; then + 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 +} + +ferss() { + url="${1?}" + curl -s "$url" | xmllint --html --xpath "//link[@type='application/rss+xml' or @type='application/atom+xml']/@href" - 2>/dev/null +} + reval() { eval "$(rbenv init - --no-rehash shell)" ruby --version diff --git a/modules/mixins/monitoring/h2o.jsonnet b/modules/mixins/monitoring/h2o.jsonnet @@ -163,7 +163,7 @@ local barGaugePanel(title, gp, targets, unit='short', colorMode='continuous-GrYl local rowPanel(title, y) = row.new(title) - + row.withGridPos({ h: 1, w: 24, x: 0, y: y }) + + row.withGridPos(y) + row.withCollapsed(false); // percentile series for a latency phase (h2o_<phase>_time_{0,25,50,75,99}). diff --git a/modules/mixins/monitoring/zfs_exporter.jsonnet b/modules/mixins/monitoring/zfs_exporter.jsonnet @@ -210,7 +210,7 @@ local tablePanel(title, gp, targets, transformations, overrides, sortBy, footer, local rowPanel(title, y) = row.new(title) - + row.withGridPos({ h: 1, w: 24, x: 0, y: y }) + + row.withGridPos(y) + row.withCollapsed(false); local override(name, properties) = {