Kernel Debugging with QEMU: Difference between revisions
m Increase image size as 1024 is no longer sufficient |
|||
| Line 78: | Line 78: | ||
Save this as <code>nixos-image.nix</code>: | Save this as <code>nixos-image.nix</code>: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix">{ pkgs ? import <nixpkgs> {} }: | ||
{ pkgs ? import <nixpkgs> {} }: | |||
import (pkgs.path + "/nixos/lib/make-disk-image.nix") { | import (pkgs.path + "/nixos/lib/make-disk-image.nix") { | ||
config = (import (pkgs.path + "/nixos/lib/eval-config.nix") { | config = (import (pkgs.path + "/nixos/lib/eval-config.nix") { | ||
| Line 89: | Line 88: | ||
inherit pkgs; | inherit pkgs; | ||
inherit (pkgs) lib; | inherit (pkgs) lib; | ||
diskSize = | diskSize = 2048; | ||
partitionTableType = "none"; | partitionTableType = "none"; | ||
# for a different format | # for a different format | ||
format = "qcow2"; | format = "qcow2"; | ||
} | }</syntaxhighlight> | ||
</syntaxhighlight> | |||
Than follows the nixos configuration in a file named <code>nixos-config.nix</code> | Than follows the nixos configuration in a file named <code>nixos-config.nix</code> | ||