Add a Digital Ocean format. (#47)

This commit is contained in:
Vo Minh Thu 2019-12-01 18:25:19 +01:00 committed by zimbatm
parent 1ca14a1c85
commit 95f5810ef4
2 changed files with 18 additions and 0 deletions

View File

@ -31,6 +31,7 @@ nix-env -f https://github.com/nix-community/nixos-generators/archive/master.tar.
format | description
--- | ---
azure | Microsoft azure image
do | Digital Ocean image
gce | Google Compute Image
install-iso | Installer ISO
iso | ISO
@ -52,6 +53,15 @@ sd-aarch64 | Like sd-aarch64-installer, but does not use default installer image
Run `nixos-generate --help` for detailed usage information.
## Using a particular nixpkgs
To use features found in a different nixpkgs (for instance the Digital Ocean
image was recently merged in nixpkgs):
```
NIX_PATH=nixpkgs=../nixpkgs nixos-generate -f do
```
## Cross Compiling
To cross compile nixos images for other system you have

8
formats/do.nix Normal file
View File

@ -0,0 +1,8 @@
{ modulesPath, ... }:
{
imports = [
"${toString modulesPath}/virtualisation/digital-ocean-image.nix"
];
formatAttr = "digitalOceanImage";
}