A small, focused Nix flake that packages the upstream release binaries for T3 Code on Linux and macOS.
This repo exposes packages and apps so you can nix run, nix build, or consume it from another flake. Every package contains two executables:
t3codelaunches the Electron desktop app.t3runs the bundled headless CLI using Electron's Node mode.
- Reproducible packaging for the official T3 Code release artifacts.
- Clean flake outputs for both package and runnable app workflows.
Run straight from GitHub:
nix run github:omarcresp/t3code-flake#t3-codeRun the pinned nightly build:
nix run github:omarcresp/t3code-flake#t3-code-nightlyRun the stable or nightly headless CLI:
nix run github:omarcresp/t3code-flake#t3 -- serve --help
nix run github:omarcresp/t3code-flake#t3-nightly -- serve --helpBuild locally from a clone:
nix build .#t3-codeInstall into your profile:
nix profile install github:omarcresp/t3code-flake#t3-codeInstall nightly into your profile:
nix profile install github:omarcresp/t3code-flake#t3-code-nightlyBoth packages install the desktop executable as t3code and the headless CLI as t3.
The default package and app remain the stable release.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
t3code-flake.url = "github:omarcresp/t3code-flake";
};
outputs = { self, nixpkgs, t3code-flake, ... }:
let
system = builtins.currentSystem;
in
{
# NixOS example
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
({ ... }: {
environment.systemPackages = [
t3code-flake.packages.${system}.t3-code
];
})
];
};
# Home Manager / devShell / plain package set example
packages.${system}.default = t3code-flake.packages.${system}.t3-code;
};
}| Output | Description |
|---|---|
packages.x86_64-linux.default |
Alias of Linux t3-code package |
packages.x86_64-linux.t3-code |
Electron app extracted from the upstream AppImage and patched for Nix |
packages.x86_64-linux.t3-code-nightly |
Pinned nightly Electron app extracted from the upstream AppImage and patched for Nix |
packages.aarch64-darwin.t3-code |
macOS Apple Silicon app bundle package |
packages.aarch64-darwin.t3-code-nightly |
Pinned nightly macOS Apple Silicon app bundle package |
apps.<system>.t3-code |
Runnable app (nix run) for each supported system |
apps.<system>.t3-code-nightly |
Runnable nightly app (nix run) for each supported system |
apps.<system>.t3code |
Alias for the stable desktop app |
apps.<system>.t3code-nightly |
Alias for the nightly desktop app |
apps.<system>.t3 |
Stable headless CLI |
apps.<system>.t3-nightly |
Nightly headless CLI |
checks.<system>.t3-cli |
Verifies stable and nightly t3 serve --help reach the headless CLI |
Inspect outputs:
nix flake show github:omarcresp/t3code-flakex86_64-linuxaarch64-darwin
Intel macOS (x86_64-darwin) is not supported: nixpkgs 26.05 is the last release supporting that platform, so it was dropped from this flake.
If your Nix install does not have flakes enabled yet, add:
experimental-features = nix-command flakesto your nix.conf.