Skip to content
Snippets Groups Projects
issuer-aws.nix 442 B
Newer Older
  • Learn to ignore specific revisions
  • { 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";
    
    
      boot.kernel.sysctl = { "vm.swappiness" = 0; };
    
      swapDevices = [ {
        device = "/var/swapfile";
        size = 8192; # megabytes
        randomEncryption = true;
      } ];