1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 02:43:24 +03:00

rootfs: Default to growing rootfs

This commit is contained in:
Samuel Dionne-Riel 2019-10-07 02:42:12 -04:00
parent 1fdf5e7ee7
commit 4ac7b4c970

View File

@ -9,6 +9,8 @@ in
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = false;
boot.growPartition = lib.mkDefault true;
system.build.rootfs =
pkgs.imageBuilder.fileSystem.makeExt4 {
name = "NIXOS_SYSTEM";
@ -27,8 +29,9 @@ in
echo "Done copying system closure..."
cp -v ${closureInfo}/registration ./nix-path-registration
'';
# FIXME : fixup the partition autoexpand.
extraPadding = pkgs.imageBuilder.size.MiB 500;
# Give some headroom for initial mounting.
extraPadding = pkgs.imageBuilder.size.MiB 20;
}
;