diff options
author | Nathan Zadoks <nathan@nathan7.eu> | 2016-01-26 12:21:42 +0100 |
---|---|---|
committer | Nathan Zadoks <nathan@nathan7.eu> | 2016-08-30 16:48:05 -0400 |
commit | f503f648b3b980d38418eff2516112d60e067bc8 (patch) | |
tree | 45ecc0bdaa46981cf616ccc47ab7dd45d0a14949 /nixos/modules/virtualisation/virtualbox-image.nix | |
parent | 346c31000bebfec7cbcf4dbc3276d0af90544351 (diff) |
virtualbox-image module: enable partition / filesystem growth
Diffstat (limited to 'nixos/modules/virtualisation/virtualbox-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/virtualbox-image.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/virtualbox-image.nix b/nixos/modules/virtualisation/virtualbox-image.nix index 3a598a1c7dc5..b6a5b3e4788d 100644 --- a/nixos/modules/virtualisation/virtualbox-image.nix +++ b/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"; |