feat: add t3 code properly

This commit is contained in:
Jet 2026-05-04 15:19:51 -07:00
parent 5322b4f924
commit e8bdd48716
No known key found for this signature in database
4 changed files with 61 additions and 34 deletions

View file

@ -130,44 +130,13 @@ let
};
betterbirdLauncher = pkgs.writeShellApplication {
name = "betterbird-profile";
runtimeInputs = [
pkgs.coreutils
pkgs.gawk
];
text = ''
set -euo pipefail
profile_root="''${HOME:-${config.home.homeDirectory}}/.thunderbird"
profile_link="$profile_root/betterbird-current"
profile=""
profile="$profile_root/betterbird-current"
if [ -d "$profile_root" ]; then
for lock in "$profile_root"/*/.parentlock; do
if [ -e "$lock" ]; then
profile="''${lock%/.parentlock}"
ln -sfn "$profile" "$profile_link"
break
fi
done
if [ -z "$profile" ] && [ -e "$profile_link" ]; then
profile="$(readlink -f "$profile_link")"
fi
if [ -z "$profile" ] && [ -f "$profile_root/profiles.ini" ]; then
install_default="$(awk '
/^\[Install/ { in_install = 1; next }
/^\[/ { in_install = 0 }
in_install && /^Default=/ { sub(/^Default=/, ""); print; exit }
' "$profile_root/profiles.ini")"
if [ -n "$install_default" ] && [ -d "$profile_root/$install_default" ]; then
profile="$profile_root/$install_default"
ln -sfn "$profile" "$profile_link"
fi
fi
fi
if [ -n "$profile" ] && [ -d "$profile" ]; then
if [ -d "$profile" ]; then
exec ${betterbird}/bin/betterbird --profile "$profile" "$@"
fi

View file

@ -1,4 +1,9 @@
{ pkgs, homeLib, ... }:
{
inputs,
pkgs,
homeLib,
...
}:
{
home.packages = with pkgs; [
@ -8,6 +13,7 @@
codex
ffmpeg-full
homeLib.wrappedOpencode
inputs.t3code.packages.${pkgs.stdenv.hostPlatform.system}.t3code-nightly
skills
homeLib.zellijNewTabZoxide
homeLib.zellijSyncTabName