diff options
author | Andrew Childs <lorne@cons.org.nz> | 2019-08-23 21:12:33 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2019-08-23 23:27:49 +0900 |
commit | 4c446b82682249e23a0141d27fa035e6ae8c515a (patch) | |
tree | 1e3ef6b0ef0ff85205d2f972c7ad663d052e6307 /nixos/modules/virtualisation/amazon-image.nix | |
parent | a5ca97028ff9af0249b59b3a2f217ce0dd81844a (diff) | |
download | nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar.gz nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar.bz2 nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar.lz nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar.xz nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.tar.zst nixpkgs-4c446b82682249e23a0141d27fa035e6ae8c515a.zip |
amazon-image: include ec2-utils in udev rules
This sets up device mappings like /dev/xvda -> /dev/nvme0n1
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 0c4ad90b4eb..ba4fcbaf7de 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 ""; |