This commit is contained in:
MaCXyLo oLyXCaM 2019-12-01 20:11:56 +01:00
commit 50e8fd3e55
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 format | description
--- | --- --- | ---
azure | Microsoft azure image azure | Microsoft azure image
do | Digital Ocean image
gce | Google Compute Image gce | Google Compute Image
install-iso | Installer ISO install-iso | Installer ISO
install-iso-hyperv | Installer ISO with enabled hyper-v support install-iso-hyperv | Installer ISO with enabled hyper-v support
@ -53,6 +54,15 @@ sd-aarch64 | Like sd-aarch64-installer, but does not use default installer image
Run `nixos-generate --help` for detailed usage information. 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 ## Cross Compiling
To cross compile nixos images for other system you have 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";
}