{"id":26271760,"url":"https://github.com/aloshy-ai/ethernix","last_synced_at":"2025-03-14T07:14:36.376Z","repository":{"id":274673108,"uuid":"923681631","full_name":"aloshy-ai/ethernix","owner":"aloshy-ai","description":"Nix-based development environment for Ethereum smart contract development and testing","archived":false,"fork":false,"pushed_at":"2025-03-10T03:46:08.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T04:23:00.274Z","etag":null,"topics":["blockchain","development","ethereum","nix","smart-contracts","solidity","web3"],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aloshy-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-28T17:17:36.000Z","updated_at":"2025-03-10T03:46:12.000Z","dependencies_parsed_at":"2025-01-28T18:39:58.631Z","dependency_job_id":null,"html_url":"https://github.com/aloshy-ai/ethernix","commit_stats":null,"previous_names":["aloshy-ai/ethernix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fethernix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fethernix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fethernix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fethernix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloshy-ai","download_url":"https://codeload.github.com/aloshy-ai/ethernix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538133,"owners_count":20307104,"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","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":["blockchain","development","ethereum","nix","smart-contracts","solidity","web3"],"created_at":"2025-03-14T07:14:35.746Z","updated_at":"2025-03-14T07:14:36.371Z","avatar_url":"https://github.com/aloshy-ai.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ETHERNIX\n\n[![](https://img.shields.io/badge/aloshy.🅰🅸-000000.svg?style=for-the-badge)](https://aloshy.ai)\n[![Platform](https://img.shields.io/badge/PLATFORM-LINUX-FCC624.svg?style=for-the-badge\u0026logo=linux)](https://github.com/aloshy-ai/ethernix)\n[![Build Status](https://img.shields.io/badge/BUILD-PASSING-success.svg?style=for-the-badge\u0026logo=github)](https://github.com/aloshy-ai/ethernix/actions)\n[![Apple Silicon Ready](https://img.shields.io/badge/APPLE_SILICON-READY-success.svg?style=for-the-badge\u0026logo=apple)](https://github.com/aloshy-ai/ethernix)\n[![License](https://img.shields.io/badge/LICENSE-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n\nA NixOS image builder for Raspberry Pi 4 that provides a streamlined way to create custom NixOS images. Works natively on Apple Silicon (M1/M2/M3) Macs through Docker-based cross-compilation, ensuring seamless build experience across platforms.\n\n## Overview\n\nETHERNIX simplifies the process of creating NixOS images for Raspberry Pi 4 by providing:\n\n- Declarative NixOS configuration specifically optimized for Raspberry Pi 4\n- Automated build pipeline using Devbox\n- Pre-configured networking and SSH access\n- Essential system utilities pre-installed\n- Reproducible builds through Nix\n- Native support for Apple Silicon through Docker-based cross-compilation\n\n## System Requirements\n\n- [Devbox](https://www.jetify.com/docs/devbox/installing_devbox) installed\n- Container runtime:\n  - Docker Desktop or Colima with minimum 8GB RAM and 4 CPUs\n- Hardware:\n  - SD Card (minimum 8GB)\n  - SD Card reader/writer\n  - Raspberry Pi 4\n\n## Quick Start\n\n1. Clone and enter the repository:\n   ```bash\n   git clone https://github.com/aloshy-ai/ethernix.git\n   cd ethernix\n   ```\n\n2. Initialize development environment:\n   ```bash\n   devbox shell\n   ```\n   For `direnv` users, run `direnv allow` instead.\n\n3. Generate a secure password hash:\n   ```bash\n   ./scripts/passwdgen.sh\n   ```\n\n4. Configure the user account in `configuration.nix`:\n   ```nix\n   users.users.admin = {\n     isNormalUser = true;\n     extraGroups = [ \"wheel\" ];\n     hashedPassword = \"your-generated-hash-here\";\n   };\n   ```\n\n5. Build the image:\n   ```bash\n   devbox run build\n   ```\n\n## SD Card Installation\n\n1. Identify your SD card:\n   ```bash\n   diskutil list\n   ```\n\n2. Prepare the SD card:\n   ```bash\n   sudo diskutil unmountDisk /dev/diskN\n   ```\n   \u003e Replace `diskN` with your SD card's identifier (e.g., `disk6`)\n\n3. Flash the image:\n   ```bash\n   sudo dd if=out/ethernix.img of=/dev/diskN bs=1M status=progress\n   ```\n   \u003e ⚠️ **CAUTION**: Double-check the disk identifier to prevent data loss\n\n4. Safely eject:\n   ```bash\n   sudo sync\n   sudo diskutil eject /dev/diskN\n   ```\n\n## Initial Setup\n\n1. Insert the SD card and connect your Raspberry Pi 4 to:\n   - Power supply\n   - Ethernet cable\n   - (Optional) Display and keyboard for direct access\n\n2. Access via SSH:\n   ```bash\n   ssh aloshy@192.168.8.69\n   ```\n\n3. Update system channels:\n   ```bash\n   sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos\n   sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager\n   sudo nix-channel --update\n   ```\n\n4. Set up system configuration:\n   ```bash\n   sudo nixos-generate-config\n   ```\n\n5. Transfer configuration files:\n   \n   From your development machine:\n   ```bash\n   scp -i ~/.ssh/id_rsa {flake.nix,configuration.nix} aloshy@192.168.8.69:/tmp/\n   ```\n\n   On the Raspberry Pi:\n   ```bash\n   sudo mv /tmp/{flake.nix,configuration.nix} /etc/nixos/\n   ```\n\n6. Apply the configuration:\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloshy-ai%2Fethernix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloshy-ai%2Fethernix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloshy-ai%2Fethernix/lists"}