diff --git a/README.md b/README.md index a88ef4c..8b97bae 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ recursive layouts. Disko doesn't require installation: it can be run directly from nix-community repository. The [Quickstart Guide](./docs/quickstart.md) documents how to run Disko in its simplest form when installing NixOS. Alternatively, you can also -use the new [disko-install](./docs/disko-install.md) tool, which combines `disko` and `nixos-install` into one step. +use the new [disko-install](./docs/disko-install.md) tool, which combines +`disko` and `nixos-install` into one step. For information on other use cases, including upgrading from an older version of **disko**, using **disko** without NixOS and downloading the module, see the diff --git a/docs/interactive-vm.md b/docs/interactive-vm.md index c6119e5..4641f59 100644 --- a/docs/interactive-vm.md +++ b/docs/interactive-vm.md @@ -1,7 +1,9 @@ # Running Interactive VMs with disko -disko now exports its own flavor of interactive VMs (similiar to config.system.build.vm). -Simply import the disko module and build the vm runner with: +disko now exports its own flavor of interactive VMs (similiar to +config.system.build.vm). Simply import the disko module and build the vm runner +with: + ``` nix build -L '.#nixosConfigurations.mymachine.config.system.build.vmWithDisko' ``` @@ -12,7 +14,8 @@ afterwards you can run the interactive VM with: result/bin/disko-vm ``` -You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS option: +You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS +option: ```nix { @@ -24,6 +27,6 @@ You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS opt } ``` -extraConfig that is set in disko.tests.extraConfig is also applied to the interactive VMs. -imageSize of the VMs will be determined by the imageSize in the disk type in your disko config. -memorySize is set by disko.memSize +extraConfig that is set in disko.tests.extraConfig is also applied to the +interactive VMs. imageSize of the VMs will be determined by the imageSize in the +disk type in your disko config. memorySize is set by disko.memSize diff --git a/flake.nix b/flake.nix index dc6d9eb..e9e57b7 100644 --- a/flake.nix +++ b/flake.nix @@ -85,10 +85,58 @@ deadnix ]; text = '' - set -o xtrace - nixpkgs-fmt "$@" - deno fmt "$@" - deadnix --edit "$@" + showUsage() { + cat < { } -, diskoLib ? pkgs.callPackage ../lib { } -}: +{ pkgs ? import { }, ... }: (pkgs.nixos [ ../example/stand-alone/configuration.nix { documentation.enable = false; }