mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-30 01:39:36 +03:00
9edb9f7bdf
on master, `autoResize` can only be true if the `fsType` is explicitly set.
23 lines
498 B
Nix
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";
|
|
}
|