virtualbox-image module: enable partition / filesystem growth
This commit is contained in:
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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue