nixos/ec2: remove dependency on NIX_PATH

This is required when migrating to flakes
This commit is contained in:
Jörg Thalheim 2020-08-08 08:48:28 +01:00 committed by Alyssa Ross
parent 5aeff94693
commit 0cb79c953d

View File

@ -63,8 +63,8 @@ in {
fsType = "ext4";
configFile = pkgs.writeText "configuration.nix"
''
{
imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ];
{ modulesPath, ... }: {
imports = [ "''${modulesPath}/virtualisation/amazon-image.nix" ];
${optionalString config.ec2.hvm ''
ec2.hvm = true;
''}