Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

customize-monitoring.nix

Blame
  • Forked from PrivateStorage / PrivateStorageio
    Source project has a limited visibility.
    issuer-aws.nix 442 B
    { 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 = [ {
        device = "/var/swapfile";
        size = 8192; # megabytes
        randomEncryption = true;
      } ];
    }