bd38b059ea
Introduce an AWS EC2 AMI which supports aarch64 and x86_64 with a ZFS root. This uses `make-zfs-image` which implies two EBS volumes are needed inside EC2, one for boot, one for root. It should not matter which is identified `xvda` and which is `xvdb`, though I have always uploaded `boot` as `xvda`.
12 lines
259 B
Nix
12 lines
259 B
Nix
{
|
|
imports = [ ./amazon-image.nix ];
|
|
ec2.zfs = {
|
|
enable = true;
|
|
datasets = {
|
|
"tank/system/root".mount = "/";
|
|
"tank/system/var".mount = "/var";
|
|
"tank/local/nix".mount = "/nix";
|
|
"tank/user/home".mount = "/home";
|
|
};
|
|
};
|
|
}
|