Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Last active July 3, 2018 12:02
Show Gist options
  • Save adrianparvino/4279b30c03ea5043f4becc9d4f48516e to your computer and use it in GitHub Desktop.
Save adrianparvino/4279b30c03ea5043f4becc9d4f48516e to your computer and use it in GitHub Desktop.
nixops create ./ops/config.nix ./ops/ec2.nix -d deployment
{
region = "us-east-1";
accessKeyId = "dev";
traderSecretsLocation = ../config/trader_secrets.json;
}
{ region
, accessKeyId
, traderSecretsLocation
}:
{ ... }
{ configFile ? ./config.nix, ... }@args:
let
with (args // (import configFile));
{ ... }
@cleverca22
Copy link

option 1:
config.nix

{
  defaults = {
    options = {
    };
    config = {
      customThings = { region = foo; accessKeyId = bar; };
    };
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment