nixos-anywhere
3,583
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Shell
语言
—
创建时间
最近更新
项目能做什么
支持通过 SSH 在任何地方安装 NixOS 系统的部署工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# nixos-anywhere
**_Install NixOS everywhere via ssh_**
<img src="https://raw.githubusercontent.com/nix-community/nixos-anywhere/main/docs/logo.svg" width="150" height="150">
[Documentation Index](docs/INDEX.md)
## README
Setting up a new machine is time-consuming, and becomes complicated when it
needs to be done remotely. If you're installing NixOS, the **nixos-anywhere**
tool allows you to pre-configure the whole process including:
- Disk partitioning and formatting
- Configuring and installing NixOS
- Installing additional files and software
You can then initiate an unattended installation with a single CLI command.
Since **nixos-anywhere** can access the new machine using SSH, it's ideal for
remote installations.
Once you have initiated the command, there is no need to 'babysit' the
installation. It all happens automatically.
You can use the stored configuration to repeat the same installation if you need
to.
## Overview
If you have machines on a mix of platforms, you'll need a common installation
solution that works anywhere. **nixos-anywhere** is ideal in this situation.
**nixos-anywhere** can be used equally well for cloud servers, bare metal
servers such as Hetzner, and local servers accessible via a LAN. You can create
standard configurations, and use the same configuration to create identical
servers anywhere.
You first create Nix configurations to specify partitioning, formatting and
NixOS configurations. Further options can be controlled by a flake and by
run-time switches.
Once the configuration has been created, a single command will:
- Connect to the remote server via SSH
- Detect whether a NixOS installer is present; if not, it will use the Linux
`kexec` tool to boot into a Nixos installer.
- Use the [disko](https://github.com/nix-community/disko) tool to partition and
format the hard drive
- Install NixOS
- Optionally install any Nix packages and other software required.
- Optionally copy additional files to the new machine
It's also possible to use **nixos-anywhere** to simplify the installation on a
machine that has no current operating system, first booting from a NixOS
installer image. This feature is described in the
[how-to guide](./docs/howtos/no-os.md#installing-on-a-machine-with-no-operating-system).
It's useful because you can pre-configure your required software and
preferences, and build the new machine with a single command.
**Important Note:** Never use a production server as the target. It will be
completely overwritten and all data lost. This tool should only be used for
commissioning a new computer or repurposing an old machine once all important
data has been migrated.
## Prerequisites
- Source Machine:
- Can be any machine with Nix installed, e.g. a NixOS machine.
- Target Machine:
- Unless you're using the option to boot from a NixOS installer image, or
providing your own `kexec` image, it must be running x86-64 Linux with kexec
support. Most `x86_64` Linux systems do have
阅读完整原文
项目深度分析 AI 生成
基于 NixOS 的自动化裸机/边缘机群部署 SaaS 面板
| 产品构想 | 构建一个轻量级 Web 控制台,集成 nixos-anywhere 与 Disko,提供可视化机器清单导入、一键 SSH 自动化批量重装与状态监控。 |
| 核心功能 | SSH 批量连接测试、可视化分区/Flake 配置模板库、一键 kexec 远程重装调度、安装进度日志实时推送、灾备节点快速重置。 |
| 目标用户 | 管理多节点 IDC 裸金属(如 Hetzner)或分布式边缘网关的中小型企业及运维团队。 |
| 难度/周期 | 中等 · 2-3 个月 · 成本:极低(主要是轻量应用服务器与测试用云节点/裸金属测试机成本) |
| 收费模式 | 按托管受控节点数量阶梯订阅收费(如前 5 台免费,后续单节点月付)。 |
| 竞争风险 | 目标用户普遍具备较强 CLI 动手能力,对付费 SaaS 控制台需求需严格验证;误操作可能导致目标机数据丢失风险。 |
| 依据 | 已验证事实 |
企业级混合云 NixOS 迁移与基线加固咨询服务
| 产品构想 | 依托 nixos-anywhere 技术栈,为企业提供传统 Linux(Ubuntu/CentOS)一键热迁移至不可变基础设施 NixOS 的咨询与实施方案。 |
| 核心功能 | 定制化 kexec 镜像打包、企业内部 VPN/跳板机自动化穿透、Disko 磁盘加密方案(LUKS/ZFS)、合规基线自动化注入。 |
| 目标用户 | 对环境一致性、合规审计、不可变基础设施有刚性需求的中大型 IT 部门。 |
| 难度/周期 | 较高 · 按项目交付(每个项目 2-4 周) · 成本:低(主要为人力与专业知识时间成本) |
| 收费模式 | 项目制实施费、技术支持咨询年费、定制化 Flake 架构顾问费。 |
| 竞争风险 | Nix 学习曲线陡峭,主流企业接受度有限,客群拓展周期长。 |
| 依据 | 数据支持的判断 |
多云裸金属快速预配与重置 CLI 增值工具包
| 产品构想 | 开发针对主流裸金属服务商(Hetzner, OVH, Equinix Metal 等)的增强型 CLI 工具,封装 API 开机、IP 绑定与 nixos-anywhere 无缝衔接流程。 |
| 核心功能 | 云厂商 API 联动(自动创建服务器并获取 IP)、秘钥自动化下发、一键端到端跑通从下单到 NixOS 可用的全流程、本地 Secrets 加密传输集成。 |
| 目标用户 | 独立开发者、Web3 节点运维者、高防服务器租赁重度用户。 |
| 难度/周期 | 低 · 1 个月 · 成本:极低 |
| 收费模式 | 商业 Pro 版本源码许可证(双许可证模式)或 GitHub Sponsors 专属增值插件。 |
| 竞争风险 | 开源社区容易出现免费竞品分流,变现规模较小。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 16 个 Release |
| 社区活跃 | Star 3,583 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。