diff --git a/flake.lock b/flake.lock index 95899f4..5bbe909 100644 --- a/flake.lock +++ b/flake.lock @@ -52,6 +52,49 @@ "type": "github" } }, + "codex-cli": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1784171300, + "narHash": "sha256-LiWzndOW88994z4SCnenv+2rKe/ryEgvWSsBjFpNvrc=", + "owner": "sadjow", + "repo": "codex-cli-nix", + "rev": "c4b3fc9d761797a813b5f8b1d38a9a81cdba6e45", + "type": "github" + }, + "original": { + "owner": "sadjow", + "ref": "main", + "repo": "codex-cli-nix", + "type": "github" + } + }, + "codex-desktop-linux": { + "inputs": { + "flake-utils": "flake-utils_3", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1784214799, + "narHash": "sha256-GF6mXG+Lq8k6vWxhKDun1gIe8wtZE5sSh2Po3onZDJE=", + "owner": "ilysenko", + "repo": "codex-desktop-linux", + "rev": "f84913f714067b31577e4af84c5b6e1a8bda8130", + "type": "github" + }, + "original": { + "owner": "ilysenko", + "repo": "codex-desktop-linux", + "type": "github" + } + }, "ethui": { "inputs": { "nixpkgs": "nixpkgs_2", @@ -108,6 +151,42 @@ } }, "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" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_3" + }, + "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" + } + }, + "flake-utils_4": { "locked": { "lastModified": 1644229661, "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", @@ -122,9 +201,9 @@ "type": "github" } }, - "flake-utils_3": { + "flake-utils_5": { "inputs": { - "systems": "systems_4" + "systems": "systems_6" }, "locked": { "lastModified": 1731533236, @@ -142,7 +221,7 @@ }, "foundry": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_4", "nixpkgs": [ "nixpkgs" ] @@ -316,7 +395,7 @@ "hyprwire": "hyprwire", "nixpkgs": "nixpkgs_4", "pre-commit-hooks": "pre-commit-hooks", - "systems": "systems_3", + "systems": "systems_5", "xdph": "xdph" }, "locked": { @@ -441,7 +520,7 @@ "rose-pine-hyprcursor", "nixpkgs" ], - "systems": "systems_5" + "systems": "systems_7" }, "locked": { "lastModified": 1709914708, @@ -742,7 +821,7 @@ }, "nvchad4nix": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_5", "nixpkgs": [ "nixpkgs" ], @@ -790,6 +869,8 @@ "root": { "inputs": { "claude-code": "claude-code", + "codex-cli": "codex-cli", + "codex-desktop-linux": "codex-desktop-linux", "ethui": "ethui", "foundry": "foundry", "hardware": "hardware", @@ -802,7 +883,7 @@ "nvchad4nix": "nvchad4nix", "rose-pine-hyprcursor": "rose-pine-hyprcursor", "spicetify-nix": "spicetify-nix", - "systems": "systems_8", + "systems": "systems_10", "yogurt": "yogurt", "zen-browser": "zen-browser" } @@ -852,7 +933,7 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_7" + "systems": "systems_9" }, "locked": { "lastModified": 1781425310, @@ -883,6 +964,21 @@ "type": "github" } }, + "systems_10": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, "systems_2": { "locked": { "lastModified": 1681028828, @@ -900,16 +996,16 @@ }, "systems_3": { "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default-linux", + "repo": "default", "type": "github" } }, @@ -959,21 +1055,6 @@ } }, "systems_7": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_8": { "locked": { "lastModified": 1689347949, "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", @@ -988,9 +1069,39 @@ "type": "github" } }, + "systems_8": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_9": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "inputs": { - "systems": "systems_2" + "systems": "systems_4" }, "locked": { "lastModified": 1731533236, @@ -1008,7 +1119,7 @@ }, "utils_2": { "inputs": { - "systems": "systems_6" + "systems": "systems_8" }, "locked": { "lastModified": 1710146030, diff --git a/flake.nix b/flake.nix index a984543..75e22de 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,14 @@ inputs.nixpkgs.follows = "nixpkgs"; }; claude-code.url = "github:sadjow/claude-code-nix"; + codex-cli = { + url = "github:sadjow/codex-cli-nix/main"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + codex-desktop-linux = { + url = "github:ilysenko/codex-desktop-linux"; + inputs.nixpkgs.follows = "nixpkgs"; + }; yogurt.url = "git+https://github.com/ZePedroResende/yogurt"; nix-index-database = { url = "github:nix-community/nix-index-database"; diff --git a/home/common/programs/codex.nix b/home/common/programs/codex.nix new file mode 100644 index 0000000..a786a68 --- /dev/null +++ b/home/common/programs/codex.nix @@ -0,0 +1,16 @@ +{ + inputs, + pkgs, + ... +}: +let + codex-cli = inputs.codex-cli.packages.${pkgs.stdenv.hostPlatform.system}.default; +in +{ + imports = [ inputs.codex-desktop-linux.homeManagerModules.default ]; + + programs.codexDesktopLinux = { + enable = true; + cliPackage = codex-cli; + }; +} diff --git a/home/common/programs/dev.nix b/home/common/programs/dev.nix index c3d3606..a47937b 100644 --- a/home/common/programs/dev.nix +++ b/home/common/programs/dev.nix @@ -4,6 +4,7 @@ }: { imports = [ + ./codex.nix ./ralph-claude-code.nix ./t3-code.nix ];