Skip to content
Snippets Groups Projects
Commit 5cd53070 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Help NixOS configure GRUB on AWS

parent 6bbbc6c2
No related branches found
No related tags found
3 merge requests!140Merge staging into production,!118Merge develop into staging,!103Secure swap space and have 8 GB of swap consistently on all machines.
Pipeline #768 passed
{
{ 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 = [ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment