mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-26 03:15:32 +03:00
Merge branch 'master' of https://github.com/nix-community/nixos-generators
This commit is contained in:
commit
50e8fd3e55
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
|
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
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