{"id":23732226,"url":"https://github.com/0x77dev/land","last_synced_at":"2026-04-10T03:32:35.700Z","repository":{"id":270200011,"uuid":"909617423","full_name":"0x77dev/land","owner":"0x77dev","description":"My homelab and dotfiles managed with Nix. This repository contains declarative configurations for my machines.","archived":false,"fork":false,"pushed_at":"2025-06-19T06:55:16.000Z","size":511,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T00:44:00.960Z","etag":null,"topics":["dotfiles","home-manager","homelab","nix","nix-darwin","nix-flake","nixos-configuration"],"latest_commit_sha":null,"homepage":"","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/0x77dev.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,"zenodo":null}},"created_at":"2024-12-29T09:11:53.000Z","updated_at":"2025-06-19T06:55:20.000Z","dependencies_parsed_at":"2024-12-29T10:21:53.945Z","dependency_job_id":"e2d036cf-3e06-4f2f-a3f5-595edd544a6f","html_url":"https://github.com/0x77dev/land","commit_stats":null,"previous_names":["0x77dev/land"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0x77dev/land","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x77dev%2Fland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x77dev%2Fland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x77dev%2Fland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x77dev%2Fland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x77dev","download_url":"https://codeload.github.com/0x77dev/land/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x77dev%2Fland/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268617308,"owners_count":24279230,"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-08-03T02:00:12.545Z","response_time":2577,"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":["dotfiles","home-manager","homelab","nix","nix-darwin","nix-flake","nixos-configuration"],"created_at":"2024-12-31T04:15:08.016Z","updated_at":"2026-04-10T03:32:35.644Z","avatar_url":"https://github.com/0x77dev.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# land 🏠\n\n[![Cachix Cache](https://img.shields.io/badge/cachix-land-blue.svg)](https://app.cachix.org/cache/land)\n![Maintenance](https://img.shields.io/maintenance/yes/2025)\n\nMy homelab and dotfiles managed with Nix. This repository contains declarative configurations for my machines.\n\n## Overview\n\nThis repository uses [Nix](https://nixos.org/) to manage:\n\n- macOS machines (via nix-darwin)\n- NixOS systems\n- Home Manager configurations\n- WSL 2 instances\n- Containers (Proxmox LXC)\n\n## Usage\n\n1. Install Nix following the [official instructions](https://nixos.org/download.html)\n2. Apply configuration:\n\n   - For macOS:\n     ```shell\n     nix run nix-darwin --experimental-features 'nix-command flakes' -- switch --refresh --flake github:0x77dev/land#\u003chostname\u003e\n     ```\n   - For NixOS:\n     ```shell\n     nixos-rebuild switch --refresh --flake github:0x77dev/land#\u003chostname\u003e\n     ```\n   - For installing NixOS on a new machine:\n\n     ```shell\n     HOSTNAME=...\n     mkdir -p systems/nixos/$HOSTNAME\n\n     curl https://raw.githubusercontent.com/nix-community/disko/master/example/hybrid.nix -o systems/nixos/$HOSTNAME/disko-config.nix\n     # edit disko-config.nix\n     # download disko-config.nix to the target machine at /tmp\n     sudo nix \\\n      --experimental-features \"nix-command flakes\" \\\n      run github:nix-community/disko -- \\\n      --mode disko /tmp/disko-config.nix\n\n     sudo nixos-install --root /mnt --flake 'github:0x77dev/land#\u003chostname\u003e'\n     ```\n\n   - For installing NixOS on a new machine remotely:\n\n     ```shell\n     # Boot into the NixOS minimal ISO or any Linux distribution with kexec support, ensure passwordless sudo user and ssh.\n     # NixOS minimal is the easiest to use (ssh is enabled by default, passwordless sudo user is created): boot, run `sudo passwd nixos`, and then execute the following command on another machine:\n     nixos-anywhere --flake 'github:0x77dev/land#\u003chostname\u003e' \u003cusername\u003e@\u003chostname\u003e\n     ```\n\n   - Applying NixOS configuration on a machine remotely:\n\n     ```shell\n     nixos-rebuild \\\n        --flake .#tomato \\\n        --target-host mykhailo@tomato \\\n        --build-host mykhailo@tomato \\\n        --use-remote-sudo \\\n        switch --accept-flake-config\n     ```\n\n   - For home-manager (if not defined in NixOS or nix-darwin):\n     ```shell\n     nix run home-manager --experimental-features 'nix-command flakes' -- switch --refresh --experimental-features 'nix-command flakes' --flake github:0x77dev/land#\u003cusername\u003e@\u003chostname\u003e -b backup\n     ```\n   - For WSL:\n\n     ```shell\n     # Build the tarball\n     sudo nix run --experimental-features 'nix-command flakes' github:0x77dev/land#nixosConfigurations.muscleWSL.config.system.build.tarballBuilder\n     ```\n\n     ```powershell\n     # Import the tarball\n     New-Item -ItemType Directory -Force -Path \"$env:USERPROFILE\\WSL-Land\"\n     wsl.exe --import Land \"$env:USERPROFILE\\WSL-Land\" nixos-wsl.tar.gz --version 2\n     ```\n\n     ```powershell\n     # Run the WSL instance\n     wsl.exe -d Land\n     # Optional: Set NixOS as the default WSL distribution\n     wsl.exe -s Land\n     ```\n\n     ```bash\n     # Post-install\n     wsl.exe -d Land -u mykhailo -e \"sudo nix-channel --update\"\n     ```\n\n     ```bash\n     # Apply updates\n     wsl.exe -d Land -u root -e \"nixos-rebuild switch --refresh --flake github:0x77dev/land#muscleWSL\"\n     ```\n\n   - For nix-rendezvous container:\n     \n     ```shell\n     # Build the Proxmox LXC container image\n     nix build .#nixosConfigurations.nix-rendezvous.config.formats.lxc-nix-rendezvous\n     ```\n     \n     ```shell\n     # Copy the tarball to your Proxmox host\n     scp result root@proxmox:/var/lib/vz/template/cache/nix-rendezvous.tar.xz\n     ```\n     \n     ```shell\n     # On Proxmox, create a new container using the tarball\n     # Either use the web interface or the command line:\n     pct create 228 /var/lib/vz/template/cache/nix-rendezvous.tar.xz \\\n       --hostname nix-rendezvous \\\n       --cores 4 \\\n       --memory 4096 \\\n       --net0 name=eth0,bridge=vmbr0,ip=dhcp \\\n       --unprivileged 1\n     ```\n     \n     ```shell\n     # Start the container\n     pct start 228\n     ```\n\n## Structure\n\n- `modules/` - Shared configuration modules\n- `modules/home/` - Home Manager configuration modules\n- `systems/` - Machine-specific configurations\n- `containers/` - Container configurations\n- `flake.nix` - Flake\n- `.envrc` - Direnv configuration\n\n## Forking\n\nIf you want to use this repository as a starting point for your own homelab, you can do so by forking it and customizing it to your needs.\n\nYou can start by adding your own machines to the `flake.nix` file, and then customize the `modules/` and `systems/` directories to your liking.\n\n## Cheat sheet\n\n### sops\n\n- Getting target machine public key\n\n  ```bash\n  ssh-keyscan tomato | ssh-to-age\n  ```\n\n### Using the nix-rendezvous container for remote builds\n\nTo use the container for remote builds:\n\n```bash\n# Set up SSH config on your client machine\ncat \u003e\u003e ~/.ssh/config \u003c\u003c EOF\nHost nix-rendezvous\n  Hostname \u003ccontainer-ip\u003e\n  User builder\n  IdentityFile ~/.ssh/id_ed25519\nEOF\n\n# Configure remote builder in nix.conf\ncat \u003e\u003e /etc/nix/nix.conf \u003c\u003c EOF\nbuilders = ssh://builder@nix-rendezvous x86_64-linux\nEOF\n\n# Test a remote build\nnix build --builders 'ssh://builder@nix-rendezvous' nixpkgs#hello\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x77dev%2Fland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x77dev%2Fland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x77dev%2Fland/lists"}