cluade sep

This commit is contained in:
Harivansh Rathi 2026-03-13 16:05:58 -04:00
parent c692473fc8
commit fc8675e1b0
4 changed files with 77 additions and 5 deletions

63
flake.lock generated
View file

@ -17,6 +17,27 @@
"type": "github" "type": "github"
} }
}, },
"claudeCode": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1773421907,
"narHash": "sha256-TN8Qf8RhmOX7TAwhdjGaE/clgAxzfHwsOjGSxz0Bz/0=",
"owner": "sadjow",
"repo": "claude-code-nix",
"rev": "4746a848ccb3e1ba1a1c99fd063bf998045b81ac",
"type": "github"
},
"original": {
"owner": "sadjow",
"repo": "claude-code-nix",
"type": "github"
}
},
"codex": { "codex": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -56,19 +77,37 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"googleworkspace-cli": { "googleworkspace-cli": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1773431608, "lastModified": 1773432102,
"narHash": "sha256-VnbyLo7+0r7x/DOwqAFMzynH8qZi2nft3UgQBeo2ls8=", "narHash": "sha256-JWI1Qsk1P5CNNrgK6qgpBsIWh3N8Xw8eTWtozZY35tw=",
"owner": "googleworkspace", "owner": "googleworkspace",
"repo": "cli", "repo": "cli",
"rev": "fc873dcc0035bbe3a6f112be130dd07a33860fc8", "rev": "6e639604a83f5f7af906706290abe9fc590f51f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -154,6 +193,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"claudeCode": "claudeCode",
"codex": "codex", "codex": "codex",
"googleworkspace-cli": "googleworkspace-cli", "googleworkspace-cli": "googleworkspace-cli",
"home-manager": "home-manager", "home-manager": "home-manager",
@ -197,6 +237,21 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -19,6 +19,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
claudeCode = {
url = "github:sadjow/claude-code-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
codex = { codex = {
url = "github:openai/codex"; url = "github:openai/codex";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -34,6 +39,7 @@
nixpkgs, nixpkgs,
nix-darwin, nix-darwin,
home-manager, home-manager,
claudeCode,
codex, codex,
nix-homebrew, nix-homebrew,
... ...

View file

@ -1,4 +1,12 @@
{...}: { {
inputs,
pkgs,
...
}: let
claudePackage =
inputs.claudeCode.packages.${pkgs.stdenv.hostPlatform.system}.default;
in {
home.file.".local/bin/claude".source = "${claudePackage}/bin/claude";
home.file.".claude/CLAUDE.md".source = ../config/claude/CLAUDE.md; home.file.".claude/CLAUDE.md".source = ../config/claude/CLAUDE.md;
home.file.".claude/commands" = { home.file.".claude/commands" = {
source = ../config/claude/commands; source = ../config/claude/commands;

View file

@ -6,6 +6,8 @@
}: let }: let
gwsPackage = gwsPackage =
inputs.googleworkspace-cli.packages.${pkgs.stdenv.hostPlatform.system}.default; inputs.googleworkspace-cli.packages.${pkgs.stdenv.hostPlatform.system}.default;
claudePackage =
inputs.claudeCode.packages.${pkgs.stdenv.hostPlatform.system}.default;
codexPackage = codexPackage =
inputs.codex.packages.${pkgs.stdenv.hostPlatform.system}.default; inputs.codex.packages.${pkgs.stdenv.hostPlatform.system}.default;
@ -81,6 +83,7 @@
in { in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
awscli2 awscli2
claudePackage
codexPackage codexPackage
coreutils-prefixed coreutils-prefixed
delta delta