virtualbox-image module: enable partition / filesystem growth

wip/yesman
Nathan Zadoks 9 years ago
parent 346c31000b
commit f503f648b3
  1. 7
      nixos/modules/virtualisation/virtualbox-image.nix

@ -8,6 +8,8 @@ let
in {
imports = [ ./grow-partition.nix ];
options = {
virtualbox = {
baseImageSize = mkOption {
@ -64,7 +66,10 @@ in {
'';
};
fileSystems."/".device = "/dev/disk/by-label/nixos";
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;
};
boot.loader.grub.device = "/dev/sda";

Loading…
Cancel
Save