virtualbox-image module: enable partition / filesystem growth

This commit is contained in:
Nathan Zadoks 2016-01-26 12:21:42 +01:00
parent 346c31000b
commit f503f648b3

View file

@ -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";