virtualbox-image module: enable partition / filesystem growth

Changed files
+6 -1
nixos
modules
virtualisation
+6 -1
nixos/modules/virtualisation/virtualbox-image.nix
···
in {
+
imports = [ ./grow-partition.nix ];
+
options = {
virtualbox = {
baseImageSize = mkOption {
···
'';
};
-
fileSystems."/".device = "/dev/disk/by-label/nixos";
+
fileSystems."/" = {
+
device = "/dev/disk/by-label/nixos";
+
autoResize = true;
+
};
boot.loader.grub.device = "/dev/sda";