diff options
author | Antoine Eiche <lewo@abesis.fr> | 2017-02-24 22:19:53 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2017-02-24 22:19:53 +0100 |
commit | 386c19a224b12c3ed0c6150c5a1d39dd69cdc532 (patch) | |
tree | ab566dc73cce237845ca0d033936d58bcf0ff330 /nixos/modules | |
parent | dec7ecbbbcc5f68ab8c96d39ba3c62eaf0326242 (diff) |
nova-image: support partition resizing
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/virtualisation/nova-config.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/nova-config.nix b/nixos/modules/virtualisation/nova-config.nix index 6bcc05d3c1e7..aac11ec8a178 100644 --- a/nixos/modules/virtualisation/nova-config.nix +++ b/nixos/modules/virtualisation/nova-config.nix @@ -6,10 +6,16 @@ with lib; imports = [ ../profiles/qemu-guest.nix ../profiles/headless.nix + ./grow-partition.nix ]; config = { - fileSystems."/".device = "/dev/disk/by-label/nixos"; + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + autoResize = true; + }; + + virtualisation.growPartition = true; boot.kernelParams = [ "console=ttyS0" ]; boot.loader.grub.device = "/dev/vda"; |