{"id":29714352,"url":"https://github.com/alyraffauf/nynx","last_synced_at":"2025-09-01T03:33:57.273Z","repository":{"id":303896354,"uuid":"1017065970","full_name":"alyraffauf/nynx","owner":"alyraffauf","description":"A Flake-native deployment tool using nix-eval-jobs for distributed NixOS and Darwin clusters.","archived":false,"fork":false,"pushed_at":"2025-07-28T20:17:59.000Z","size":98,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-28T22:20:29.062Z","etag":null,"topics":["automation","deployment","flake","golang","nix","nix-darwin","nixos"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alyraffauf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2025-07-10T01:23:07.000Z","updated_at":"2025-07-28T20:18:02.000Z","dependencies_parsed_at":"2025-07-10T10:33:31.129Z","dependency_job_id":"ac07a821-0cf2-4168-9055-cbfc45a4b066","html_url":"https://github.com/alyraffauf/nynx","commit_stats":null,"previous_names":["alyraffauf/nynx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alyraffauf/nynx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyraffauf%2Fnynx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyraffauf%2Fnynx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyraffauf%2Fnynx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyraffauf%2Fnynx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alyraffauf","download_url":"https://codeload.github.com/alyraffauf/nynx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyraffauf%2Fnynx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273069659,"owners_count":25040092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["automation","deployment","flake","golang","nix","nix-darwin","nixos"],"created_at":"2025-07-24T04:00:36.450Z","updated_at":"2025-09-01T03:33:57.168Z","avatar_url":"https://github.com/alyraffauf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nynx (nix+sync)\n\nA Flake deployer for distributed NixOS and Darwin clusters. Useful for quickly deploying the same flake revision to multiple machines in parallel.\n\nMainly a personal project to serve some specific needs of mine (outlined [here](https://aly.codes/blog/2025-05-19-mildly-better-flake-deployments/)), but it may be helpful to others as well. Also, it's my first time writing Go (please be gentle).\n\n## Usage\n\nBuild the tool using Nix:\n\n```\nnix build .#nynx\n```\n\nRun deployments:\n\n```\nnix run .#nynx -- --flake \u003cflake-url\u003e --operation \u003coperation\u003e\n```\n\n### Flags\n\n- `--debug`: Enable debug output.\n- `--skip`: Skip a comma-separated subset of jobs.\n- `--jobs`: Comma-separated subset of jobs to run (default: all jobs).\n- `--flake`: Specify the flake path or URL (e.g., `github:alyraffauf/nixcfg`).\n- `--build-host`: Specify the host on which to build closures (default: `localhost`).\n- `--operation`: Operation to perform (`switch`, or `activate` for Darwin; `boot`, `test`, `switch` for NixOS).\n\n### Example\n\nDeploy a flake to all jobs defined in `deployments.nix`:\n\n```\nnix run .#nynx -- --flake github:alyraffauf/nixcfg --operation switch\n```\n\nRun specific deployment jobs:\n\n```\nnix run .#nynx -- --flake github:alyraffauf/nixcfg --operation switch --jobs server,workstation\n```\n\n### Sample #nynxDeployments\n\nNynx is configured with a Flake output containing an attrset that defines a set of deployment jobs. Outputs can be declared in the same Flake or in an upstream Flake.\n\n```nix\n{\n  nynxDeployments = {\n    evergrande = {\n      hostname = \"evergrande\"; # Will be assumed from deployment name if not specified.\n      output = self.inputs.nixcfg.nixosConfigurations.evergrande.config.system.build.toplevel;\n      type = \"nixos\";\n      user = \"root\";\n    };\n\n    fortree = {\n      output = self.darwinConfigurations.fortree.config.system.build.toplevel;\n      user = \"aly\";\n      type = \"darwin\";\n    };\n  };\n}\n```\n\n## Limitations\n\n- Requires SSH root access or the ability to escalate privileges with sudo without password entry. It won't prompt for a password, it just fails.\n- Does not (yet) support other forms of Nix profiles, such as home-manager.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0.\n\n## Contribution\n\nContributions are welcome! Please open issues or submit pull requests for any improvements you make or bugs you encounter.\n\n## Contact\n\nYou can reach me at aly @ aly dot codes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyraffauf%2Fnynx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falyraffauf%2Fnynx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyraffauf%2Fnynx/lists"}