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
1 changed files with 2 additions and 2 deletions

View File

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