nix

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

commit 083cd53f638bae1c104f7e846d7290e385e5e873
parent b081caa08df35a82448000c4b7464a6e640fb87c
Author: mtmn <miro@haravara.org>
Date:   Thu, 18 Jun 2026 01:03:58 +0200

dotfiles: add shi alias, extend isolate env

Diffstat:
Mhosts/void/default.nix | 2++
Mhosts/void/overlays/config/magdalena/config.json.nix | 0
Mmodules/mixins/dotfiles/bin/isolate | 1+
Dmodules/mixins/dotfiles/bin/shist | 15---------------
Mmodules/mixins/dotfiles/config/shell/rc/functions | 15++++++++++-----
5 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/hosts/void/default.nix b/hosts/void/default.nix @@ -72,6 +72,8 @@ iperf3 sshuttle sshs + riemann + riemann-tools ] (with python314Packages; [yt-dlp-ejs]) ]; diff --git a/hosts/void/overlays/config/magdalena/config.json.nix b/hosts/void/overlays/config/magdalena/config.json.nix Binary files differ. diff --git a/modules/mixins/dotfiles/bin/isolate b/modules/mixins/dotfiles/bin/isolate @@ -49,6 +49,7 @@ done for p in \ "$HOME/.codex" \ "$HOME/.claude" \ + "$HOME/.claude.json" \ "$HOME/.cache/opencode" \ "$HOME/.config/opencode" \ "$HOME/.local/share/opencode" \ diff --git a/modules/mixins/dotfiles/bin/shist b/modules/mixins/dotfiles/bin/shist @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -HOST="helios" -DB="/var/db/shirts/data.db" - -ssh -o BatchMode=yes "$HOST" \ - "sqlite3 -json '$DB' 'select code, url, created_at from shirts order by created_at asc'" | - jaq -r ' - "shirts (\(length))\n", - ( .[] | - " https://shirts.mtmn.name/s/\(.code) \(.created_at)\n" + - " \(.url)" - ) - ' diff --git a/modules/mixins/dotfiles/config/shell/rc/functions b/modules/mixins/dotfiles/config/shell/rc/functions @@ -117,10 +117,20 @@ make() { fi } +kana() { + khal new --alarms "$@" + vdirsyncer sync +} + mpas() { mpc add "$(yt-dlp -f bestaudio -g "${1?}")" } +shi() { + xh -b GET "$(pass show shirts/history)" \ + "Authorization:Bearer $(pass show shirts)" +} + mpa() { mpc add "${1?}" } @@ -130,11 +140,6 @@ kan() { vdirsyncer sync } -kana() { - khal new --alarms "$@" - vdirsyncer sync -} - ae() { if tmux has-session -t aerc 2>/dev/null; then if [ -n "$TMUX" ]; then