mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
Add a Digital Ocean format. (#47)
This commit is contained in:
parent
1ca14a1c85
commit
95f5810ef4
10
README.md
10
README.md
@ -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
8
formats/do.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
"${toString modulesPath}/virtualisation/digital-ocean-image.nix"
|
||||
];
|
||||
|
||||
formatAttr = "digitalOceanImage";
|
||||
}
|
Loading…
Reference in New Issue
Block a user