This commit is contained in:
Harivansh Rathi 2026-03-13 11:39:29 -04:00
parent 4f82f80b53
commit 8616e48112
7 changed files with 216 additions and 40 deletions

View file

@ -8,18 +8,9 @@
cleanup = "none";
};
taps = [
"nicosuave/tap"
"withgraphite/tap"
];
taps = [];
brews = [
"nicosuave/tap/memex"
"postgresql@17"
"python@3.13"
"withgraphite/tap/graphite"
"worktrunk"
];
brews = [];
casks = [
"cap"

View file

@ -1,21 +1,81 @@
{
inputs,
lib,
pkgs,
username,
...
}: let
berkeleyMono = pkgs.stdenvNoCC.mkDerivation {
pname = "berkeley-mono";
version = "local";
src = /. + "/Users/${username}/Library/Fonts/BerkeleyMono-Regular.otf";
dontUnpack = true;
installPhase = ''
install -Dm644 "$src" "$out/share/fonts/opentype/BerkeleyMono-Regular.otf"
'';
};
gwsPackage =
inputs.googleworkspace-cli.packages.${pkgs.stdenv.hostPlatform.system}.default;
memex = pkgs.stdenvNoCC.mkDerivation rec {
pname = "memex";
version = "0.3.1";
src = pkgs.fetchurl {
url = "https://github.com/nicosuave/memex/releases/download/v${version}/memex-${version}-macos-arm64.tar.gz";
hash = "sha256-OIqT0xS+8vc0dQNi+YdDXLmN8V/7AT4Q/cnvbbhZ+3s=";
};
dontUnpack = true;
installPhase = ''
tar -xzf "$src"
install -Dm755 memex "$out/bin/memex"
'';
meta = {
description = "Fast local history search for Claude and Codex logs";
homepage = "https://github.com/nicosuave/memex";
license = lib.licenses.mit;
mainProgram = "memex";
platforms = lib.platforms.darwin;
};
};
graphite = pkgs.stdenvNoCC.mkDerivation rec {
pname = "graphite";
version = "1.7.20";
src = pkgs.fetchurl {
url = "https://github.com/withgraphite/homebrew-tap/releases/download/v${version}/gt-macos-arm64";
hash = "sha256-ho9VQw1ic3jhG3yxNwUL0W1WvNFku9zw6DQnGehs7+8=";
};
dontUnpack = true;
installPhase = ''
install -Dm755 "$src" "$out/bin/gt"
'';
meta = {
description = "Manage stacked Git changes and submit them for review";
homepage = "https://graphite.dev/";
license = lib.licenses.agpl3Only;
mainProgram = "gt";
platforms = lib.platforms.darwin;
};
};
worktrunk = pkgs.rustPlatform.buildRustPackage rec {
pname = "worktrunk";
version = "0.23.1";
src = pkgs.fetchurl {
url = "https://github.com/max-sixty/worktrunk/archive/refs/tags/v${version}.tar.gz";
hash = "sha256-cdQDUz7to3JkriWE9i5iJ2RftJFZivw7CTwGxDZPAqw=";
};
cargoHash = "sha256-DHjwNqMiVkWqL3CuOCITvyqkdKe+GOZ2nlMSstDIcTg=";
doCheck = false;
meta = {
description = "CLI for Git worktree management";
homepage = "https://worktrunk.dev";
license = with lib.licenses; [asl20 mit];
mainProgram = "wt";
platforms = lib.platforms.darwin;
};
};
in {
environment.systemPackages = with pkgs; [
codex
@ -24,6 +84,7 @@ in {
diff-so-fancy
git-filter-repo
git-lfs
graphite
google-cloud-sdk
gwsPackage
imagemagickBig
@ -31,17 +92,18 @@ in {
libpq
librsvg
llmfit
memex
mise
ngrok
postgresql_16
postgresql_17
redis
tailscale
terraform
worktrunk
yt-dlp
];
fonts.packages = with pkgs; [
berkeleyMono
jetbrains-mono
nerd-fonts.symbols-only
];