From 5cd53070c0fbf79aad7069d4538aaf9e7c4de917 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 25 Jun 2021 10:01:24 -0400 Subject: [PATCH] Help NixOS configure GRUB on AWS --- morph/lib/issuer-aws.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix index 15ae9cda..3febd796 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 = [ { -- GitLab