diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix index 15ae9cda47d22c753b964ebe9fe9f68f27f77e3b..3febd796b3eceb5a2da73e4874d52d50767da947 100644 --- a/morph/lib/issuer-aws.nix +++ b/morph/lib/issuer-aws.nix @@ -1,5 +1,10 @@ -{ +{ lib, ... }: { imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ]; + + # amazon-image.nix isn't quite aware of nvme-attached storage so give it a + # little help configuring grub. + boot.loader.grub.device = lib.mkForce "/dev/nvme0n1"; + ec2.hvm = true; boot.kernel.sysctl = { "vm.swappiness" = 0; }; swapDevices = [ {