mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-30 01:39:36 +03:00
3a913d1b94
removes the 2GB limit on raw disks
27 lines
569 B
Nix
27 lines
569 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
{
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
autoResize = true;
|
|
fsType = "ext4";
|
|
};
|
|
|
|
boot = {
|
|
growPartition = true;
|
|
kernelParams = [ "console=ttyS0" ];
|
|
loader.grub.device = lib.mkDefault "/dev/vda";
|
|
loader.timeout = 0;
|
|
initrd.availableKernelModules = [ "uas" ];
|
|
};
|
|
|
|
|
|
system.build.raw = import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
|
inherit lib config pkgs;
|
|
diskSize = "auto";
|
|
format = "raw";
|
|
};
|
|
|
|
formatAttr = "raw";
|
|
filename = "*.img";
|
|
}
|