From 4c446b82682249e23a0141d27fa035e6ae8c515a Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Fri, 23 Aug 2019 21:12:33 +0900 Subject: amazon-image: include ec2-utils in udev rules This sets up device mappings like /dev/xvda -> /dev/nvme0n1 --- nixos/modules/virtualisation/amazon-image.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/virtualisation/amazon-image.nix') diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 0c4ad90b4eb69..ba4fcbaf7de73 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -125,6 +125,9 @@ in services.openssh.enable = true; services.openssh.permitRootLogin = "prohibit-password"; + # Creates symlinks for block device names. + services.udev.packages = [ pkgs.ec2-utils ]; + # Force getting the hostname from EC2. networking.hostName = mkDefault ""; -- cgit 1.4.1