mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 20:17:06 +03:00
24 lines
516 B
Nix
24 lines
516 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.raw = import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
|
inherit lib config pkgs;
|
|
diskSize = 2048;
|
|
format = "raw";
|
|
};
|
|
|
|
formatAttr = "raw";
|
|
filename = "*.img";
|
|
}
|