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

51
flake.lock generated
View file

@ -16,6 +16,21 @@
"type": "github"
}
},
"flake-compat_2": {
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -239,6 +254,22 @@
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1777578337,
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts",
@ -289,6 +320,7 @@
"nixpkgs": "nixpkgs_3",
"nur": "nur",
"opencode": "opencode",
"t3code": "t3code",
"zen-browser": "zen-browser"
}
},
@ -329,6 +361,25 @@
"type": "github"
}
},
"t3code": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1777929657,
"narHash": "sha256-txfycKdyCoykyNmtZPUeqm8prX6ptTGtN18MvfIqvHA=",
"owner": "jetpham",
"repo": "nix-t3code",
"rev": "309ae4e459bb8315e417638240c38761a899f570",
"type": "github"
},
"original": {
"owner": "jetpham",
"repo": "nix-t3code",
"type": "github"
}
},
"zen-browser": {
"inputs": {
"home-manager": "home-manager_3",

View file

@ -10,6 +10,7 @@
opencode = {
url = "github:anomalyco/opencode/dev";
};
t3code.url = "github:jetpham/nix-t3code";
nixos-hardware.url = "github:NixOS/nixos-hardware";
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";

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