[cleo] pivot to nix-shell pattern for latest claude and other packages

This commit is contained in:
Matthew Bessette
2026-09-24 12:45:13 -04:00
parent 11f31fbb28
commit d9ae284378
4 changed files with 21 additions and 19 deletions
+5 -17
View File
@@ -7,9 +7,10 @@ let
taps = [ taps = [
"fwdcloudsec/granted" # aws sso utility "fwdcloudsec/granted" # aws sso utility
"felipeelias/tap" # claude-statusline "felipeelias/tap" # claude-statusline
"f1bonacc1/tap" # process-compose
"oven-sh/bun" # bun "oven-sh/bun" # bun
"sst/tap" # opencode
## Excluded intentionally
# "sst/tap" # opencode
]; ];
brews = [ brews = [
"allure" "allure"
@@ -17,20 +18,19 @@ let
"awscli" "awscli"
"ccusage" "ccusage"
"fd" "fd"
"f1bonacc1/tap/process-compose"
"felipeelias/tap/claude-statusline" "felipeelias/tap/claude-statusline"
"oven-sh/bun/bun" "oven-sh/bun/bun"
"fwdcloudsec/granted/granted" "fwdcloudsec/granted/granted"
"gdal"
"gh" "gh"
"jq" "jq"
"maven" "maven"
"rg" "rg"
"snyk-cli" "snyk-cli"
"sst/tap/opencode"
"ldcli" "ldcli"
## Excluded intentionally ## Excluded intentionally
# "gdal"
# "sst/tap/opencode"
# "libpq@17" # "libpq@17"
# "node@22" # "node@22"
]; ];
@@ -38,7 +38,6 @@ let
"1password-cli" "1password-cli"
"aws-vpn-client" "aws-vpn-client"
"chromedriver" "chromedriver"
"claude-code" # stable channel; playbook can opt into claude-code@latest
"copilot-cli" "copilot-cli"
"docker-desktop" "docker-desktop"
"expo-orbit" "expo-orbit"
@@ -124,7 +123,6 @@ in
++ [ ++ [
"biome" "biome"
"jira-cli" "jira-cli"
"treehouse"
] ]
); );
# visual-studio-code is installed by Homebrew (in ansibleRequired.casks) so # visual-studio-code is installed by Homebrew (in ansibleRequired.casks) so
@@ -136,9 +134,7 @@ in
"android-commandlinetools" "android-commandlinetools"
"android-platform-tools" "android-platform-tools"
"bruno" "bruno"
"claude"
"figma" "figma"
"super-productivity"
"kopiaui" "kopiaui"
"libreoffice" "libreoffice"
"obsidian" "obsidian"
@@ -149,14 +145,6 @@ in
"zoom" "zoom"
] ]
); );
masApps = {
BetterSnapTool = 417375580;
HiddenBar = 1452453066;
# "Jamf Trust" = 1608041266;
MeetingBar = 1518425043;
Wireguard = 1451685025;
};
}; };
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
+11 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, vars, ... }: { config, pkgs, vars, ... }:
{ {
imports = [ imports = [
./programs.vscode.nix ./programs.vscode.nix
@@ -14,6 +14,12 @@
programs.zsh.shellAliases = { programs.zsh.shellAliases = {
laws = "aws --endpoint=http://localhost:4566"; laws = "aws --endpoint=http://localhost:4566";
assume = "source $(brew --prefix)/bin/assume"; assume = "source $(brew --prefix)/bin/assume";
# Always runs the latest claude-code from the flake, no local install/update needed.
claude = "nix run github:sadjow/claude-code-nix";
# Same pattern for process-compose.
process-compose = "nix run github:F1bonacc1/process-compose --";
# Same pattern for treehouse.
treehouse = "nix run github:kunchenguid/treehouse --";
}; };
programs.zsh.initContent = '' programs.zsh.initContent = ''
@@ -109,4 +115,8 @@
tuiSidebarPanel.enabled = true; tuiSidebarPanel.enabled = true;
maintainerAnnouncements = { enabled = false; home = false; }; maintainerAnnouncements = { enabled = false; home = false; };
}; };
xdg.configFile."treehouse/config.toml".text = ''
[hooks]
post_create = ["./conditional-package-manage.sh"]
'';
} }
-1
View File
@@ -30,7 +30,6 @@
"obsidian" "obsidian"
"signal" "signal"
"spotify" "spotify"
"claude-code"
"claude" "claude"
]; ];
}; };
+5
View File
@@ -3,6 +3,11 @@
./programs.vscode.nix ./programs.vscode.nix
]; ];
programs.zsh.shellAliases = {
# Always runs the latest claude-code from the flake, no local install/update needed.
claude = "nix run github:sadjow/claude-code-nix";
};
home.sessionVariables = { home.sessionVariables = {
# Points to the Homebrew location mentioned in your caveat # Points to the Homebrew location mentioned in your caveat
NPM_CONFIG_PREFIX = "${config.home.homeDirectory}/.npm-global"; NPM_CONFIG_PREFIX = "${config.home.homeDirectory}/.npm-global";