diff --git a/README.md b/README.md index 0dcd89e..df2f13b 100644 --- a/README.md +++ b/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 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. +## 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 diff --git a/formats/do.nix b/formats/do.nix new file mode 100644 index 0000000..8b5d0e3 --- /dev/null +++ b/formats/do.nix @@ -0,0 +1,8 @@ +{ modulesPath, ... }: +{ + imports = [ + "${toString modulesPath}/virtualisation/digital-ocean-image.nix" + ]; + + formatAttr = "digitalOceanImage"; +}