Make EBS volumes much smaller
Since they're resized on first boot anyway, they don't need to be big.
This commit is contained in:
parent
8eecf2d98a
commit
ab0ddac8f9
@ -12,7 +12,7 @@ with lib;
|
|||||||
system.build.amazonImage = import ../../../lib/make-disk-image.nix {
|
system.build.amazonImage = import ../../../lib/make-disk-image.nix {
|
||||||
inherit pkgs lib config;
|
inherit pkgs lib config;
|
||||||
partitioned = config.ec2.hvm;
|
partitioned = config.ec2.hvm;
|
||||||
diskSize = 8192;
|
diskSize = if config.ec2.hvm then 2048 else 8192;
|
||||||
configFile = pkgs.writeText "configuration.nix"
|
configFile = pkgs.writeText "configuration.nix"
|
||||||
''
|
''
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user