{"id":50335679,"url":"https://github.com/mwmdev/codex-desktop-nixos","last_synced_at":"2026-05-29T13:30:38.603Z","repository":{"id":356235410,"uuid":"1230835006","full_name":"mwmdev/codex-desktop-nixos","owner":"mwmdev","description":"Codex Desktop for NixOS","archived":false,"fork":false,"pushed_at":"2026-05-07T07:22:42.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T08:22:07.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwmdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-06T11:16:44.000Z","updated_at":"2026-05-07T07:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mwmdev/codex-desktop-nixos","commit_stats":null,"previous_names":["mwmdev/codex-desktop-nixos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mwmdev/codex-desktop-nixos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwmdev%2Fcodex-desktop-nixos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwmdev%2Fcodex-desktop-nixos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwmdev%2Fcodex-desktop-nixos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwmdev%2Fcodex-desktop-nixos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwmdev","download_url":"https://codeload.github.com/mwmdev/codex-desktop-nixos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwmdev%2Fcodex-desktop-nixos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33655440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-29T13:30:37.903Z","updated_at":"2026-05-29T13:30:38.590Z","avatar_url":"https://github.com/mwmdev.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Desktop for NixOS\n\nNix packaging for running a user-provided Codex Desktop Electron bundle on NixOS.\n\nThis repo does not contain the Codex Desktop app, Electron binary, `app.asar`, or OpenAI assets. It only contains Nix packaging and local patch scripts. Each user must provide their own unpacked official Codex Desktop bundle.\n\n## Requirements\n\n- NixOS or Nix on Linux.\n- An unpacked Codex Desktop directory with:\n  - `electron`\n  - `resources/app.asar`\n  - `content/webview/index.html`\n- The Codex CLI available in `PATH`, or pass `codexCliPath` in NixOS config.\n\n## Quick Test\n\n```bash\ngit clone git@github.com:mwmdev/codex-desktop-nixos.git\ncd codex-desktop-nixos\n\nscripts/verify-local-bundle.sh /path/to/codex-app\nCODEX_APP_DIR=/path/to/codex-app nix build --impure .#fromEnv\n./result/bin/codex-app ~/my-project\n```\n\n## Install With Nix Profile\n\n```bash\nCODEX_APP_DIR=/path/to/codex-app nix profile install --impure .#fromEnv\ncodex-app ~/my-project\n```\n\n## Install On Channel-Based NixOS\n\nAdd this to your NixOS configuration:\n\n```nix\n{ config, pkgs, ... }:\n\nlet\n  codexDesktop = pkgs.callPackage /path/to/codex-desktop-nixos/package.nix {\n    codexAppSrc = /path/to/codex-app;\n    # codexCliPath = \"/home/alice/.npm-global/bin/codex\";\n  };\nin\n{\n  nixpkgs.config.allowUnfreePredicate = pkg:\n    builtins.elem (pkgs.lib.getName pkg) [ \"codex-desktop-nixos\" ];\n\n  environment.systemPackages = [\n    codexDesktop\n  ];\n}\n```\n\nThen rebuild:\n\n```bash\nsudo nixos-rebuild switch\ncodex-app ~/my-project\n```\n\n## Install With A Flake NixOS Module\n\n```nix\n{\n  inputs.codex-desktop-nixos.url = \"github:mwmdev/codex-desktop-nixos\";\n\n  outputs = { nixpkgs, codex-desktop-nixos, ... }: {\n    nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {\n      system = \"x86_64-linux\";\n      modules = [\n        codex-desktop-nixos.nixosModules.default\n        {\n          programs.codex-desktop = {\n            enable = true;\n            bundlePath = /path/to/codex-app;\n          };\n        }\n      ];\n    };\n  };\n}\n```\n\n## Updating Codex Desktop\n\nWhen the official Codex Desktop app updates, update the local bundle and rebuild the package.\n\nUpdate flow:\n\n```bash\nscripts/verify-local-bundle.sh /path/to/codex-app\nCODEX_APP_DIR=/path/to/codex-app nix build --impure .#fromEnv\n./result/bin/codex-app --help\n```\n\nIf that passes, rebuild NixOS:\n\n```bash\nsudo nixos-rebuild switch\n```\n\nIf the build fails while patching `app.asar`, the official bundle internals changed. Update the patch scripts in `patches/`, commit that change, then rebuild. The package is designed to fail loudly instead of silently producing a broken app.\n\nRuntime logs are written by the app to:\n\n```text\n~/.cache/codex-desktop/launcher.log\n```\n\n## License\n\nThe packaging code in this repository is MIT licensed. Codex Desktop binaries and OpenAI assets are not redistributed or licensed by this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwmdev%2Fcodex-desktop-nixos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwmdev%2Fcodex-desktop-nixos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwmdev%2Fcodex-desktop-nixos/lists"}