nixos-generators/formats/qcow.nix
zimbatm 9edb9f7bdf
use ext4 for the fsType (#29)
on master, `autoResize` can only be true if the `fsType` is explicitly
set.
2019-05-14 14:19:47 +00:00

23 lines
498 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;
fsType = "ext4";
};
boot.growPartition = true;
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub.device = lib.mkDefault "/dev/vda";
boot.loader.timeout = 0;
system.build.qcow = import "${toString modulesPath}/../lib/make-disk-image.nix" {
inherit lib config pkgs;
diskSize = 8192;
format = "qcow2";
};
formatAttr = "qcow";
}