diff --git a/virtual-machines/vm-test/flake.nix b/virtual-machines/vm-test/flake.nix index c2fe9c4..d3b4421 100644 --- a/virtual-machines/vm-test/flake.nix +++ b/virtual-machines/vm-test/flake.nix @@ -16,7 +16,7 @@ postgresql-db, }@inputs: let - credentialMap = builtins.listToAttrs ( + credentials = builtins.listToAttrs ( map (filename: { name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename; value = nixpkgs.runCommand "sops-decrypt-${filename}" { } '' @@ -30,7 +30,7 @@ vm = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { - credentials = credentialMap; + inherit credentials; }; modules = [ ./virtual.nix