Skip to content

Commit

Permalink
default to aws asg in nix.nix because current node doesn't exist in p…
Browse files Browse the repository at this point in the history
…roto eval
  • Loading branch information
manveru authored and Shay Bergmann committed Jun 14, 2022
1 parent 046c9a2 commit a3cab67
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions profiles/auxiliaries/nix.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{ pkgs, lib, config, self, ... }: let
deployType = config.currentCoreNode.deployType or config.currentAwsAutoScalingGroup.deployType;
{
pkgs,
lib,
config,
nodeName,
self,
...
}: let
deployType =
if nodeName != null
then config.currentCoreNode.deployType or config.currentAwsAutoScalingGroup.deployType
else "aws";
in {
nix = {
gc.automatic = true;
Expand All @@ -19,14 +29,18 @@ in {
type = "indirect";
};
};
systemFeatures = [ "recursive-nix" "nixos-test" ];
systemFeatures = ["recursive-nix" "nixos-test"];

binaryCaches = [
"https://hydra.iohk.io"
] ++ lib.optional (deployType == "aws") "${config.cluster.s3Cache}";
binaryCaches =
[
"https://hydra.iohk.io"
]
++ lib.optional (deployType == "aws") "${config.cluster.s3Cache}";

binaryCachePublicKeys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
] ++ lib.optional (deployType == "aws") "${config.cluster.s3CachePubKey}";
binaryCachePublicKeys =
[
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
]
++ lib.optional (deployType == "aws") "${config.cluster.s3CachePubKey}";
};
}

0 comments on commit a3cab67

Please sign in to comment.