Jump to content

Install NixOS on Amazon EC2/zh: Difference between revisions

From NixOS Wiki
Weijia (talk | contribs)
Created page with "Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 [https://github.com/nix-community/nixos-generators nixos-generators] 项目支持该平台。"
Weijia (talk | contribs)
Created page with "== 公共 NixOS AMIs =="
Line 2: Line 2:
Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 [https://github.com/nix-community/nixos-generators nixos-generators] 项目支持该平台。
Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 [https://github.com/nix-community/nixos-generators nixos-generators] 项目支持该平台。


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Public_NixOS_AMIs"></span>
== Public NixOS AMIs ==
== 公共 NixOS AMIs ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 19:14, 28 August 2025

Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 nixos-generators 项目支持该平台。

公共 NixOS AMIs

A list of NixOS AMI's available on AWS is located here and for a more up to date list: here (cf. this discourse thread).

The default user for these AMI's is root. There isn't a default password, instead authentication is done by using the SSH key selected during the EC2 creation process.

Creating a NixOS AMI

The nixos-generators project is currently the best method to create your own NixOS AMI. Follow the directions provided by nixos-generators & then follow the instructions provided by AWS.

Additional Resources

Troubleshooting

SSH Asks For Password

When connecting to a newly launched EC2 instance via SSH, it may ask for a password. This seems to be because the amazon-init systemd service is still reading user data. Back out of the current SSH attempt and try again in a few minutes.