virtualbox-image module: enable partition / filesystem growth

This commit is contained in:
Nathan Zadoks
2016-08-30 16:48:05 -04:00
parent 346c31000b
commit f503f648b3
@@ -8,6 +8,8 @@ let
in { in {
imports = [ ./grow-partition.nix ];
options = { options = {
virtualbox = { virtualbox = {
baseImageSize = mkOption { 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"; boot.loader.grub.device = "/dev/sda";