Skip to content

Instantly share code, notes, and snippets.

@AmineChikhaoui
Created April 24, 2019 19:41
Show Gist options
  • Save AmineChikhaoui/a028d72187ff07370d41421281b8df20 to your computer and use it in GitHub Desktop.
Save AmineChikhaoui/a028d72187ff07370d41421281b8df20 to your computer and use it in GitHub Desktop.
[amine@nixos:~/src/nixops]$ nix-instantiate --read-write-mode -I nixops=/home/amine/src/nixops/nixops/../nix --arg networkExprs '[ "/home/amine/src/nixops/output.nix" ]' --arg args {} --argstr uuid 9ad8bea1-6215-11e9-a024-02420a47088d --argstr deploymentName out '<nixops/eval-machine-info.nix>' --eval-only  --strict --arg checkConfigurationOptions false -A info  --xml 1>/dev/null
trace: WARNING: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
error: stack overflow (possible infinite recursion)

[amine@nixos:~/src/nixops]$ nix-instantiate --read-write-mode -I nixops=/home/amine/src/nixops/nixops/../nix --arg networkExprs '[ "/home/amine/src/nixops/output.nix" ]' --arg args {} --argstr uuid 9ad8bea1-6215-11e9-a024-02420a47088d --argstr deploymentName out '<nixops/eval-machine-info.nix>' --eval-only  --strict --arg checkConfigurationOptions false -A info  --json | jq .
{
  "machines": {},
  "network": {},
  "resources": {
    "awsVPNConnectionRoutes": {},
    "awsVPNConnections": {},
    "awsVPNGateways": {},
    "azureAvailabilitySets": {},
    "azureBlobContainers": {},
    "azureBlobs": {},
    "azureDNSRecordSets": {},
    "azureDNSZones": {},
    "azureDirectories": {},
    "azureExpressRouteCircuits": {},
    "azureFiles": {},
    "azureGatewayConnections": {},
    "azureLoadBalancers": {},
    "azureLocalNetworkGateways": {},
    "azureQueues": {},
    "azureReservedIPAddresses": {},
    "azureResourceGroups": {},
    "azureSecurityGroups": {},
    "azureShares": {},
    "azureStorages": {},
    "azureTables": {},
    "azureTrafficManagerProfiles": {},
    "azureVirtualNetworkGateways": {},
    "azureVirtualNetworks": {},
    "cloudwatchLogGroups": {},
    "cloudwatchLogStreams": {},
    "cloudwatchMetricAlarms": {},
    "datadogMonitors": {},
    "datadogScreenboards": {},
    "datadogTimeboards": {},
    "ebsVolumes": {},
    "ec2KeyPairs": {},
    "ec2PlacementGroups": {},
    "ec2SecurityGroups": {},
    "elasticFileSystemMountTargets": {},
    "elasticFileSystems": {},
    "elasticIPs": {},
    "gceDisks": {},
    "gceForwardingRules": {},
    "gceHTTPHealthChecks": {},
    "gceImages": {},
    "gceNetworks": {},
    "gceRoutes": {},
    "gceStaticIPs": {},
    "gceTargetPools": {},
    "gseBuckets": {},
    "iamRoles": {},
    "output": {
      "foo": {
        "_name": "foo",
        "_type": "output",
        "deployment": {
          "arguments": {},
          "name": "out",
          "uuid": "9ad8bea1-6215-11e9-a024-02420a47088d"
        },
        "executable": "/nix/store/hd6hdfndiw86j8dih2xya5xiky0br5z0-nixops-foo",
        "name": "foo",
        "script": "echo foo\n",
        "value": null
      }
    },
    "rdsDbInstances": {},
    "rdsDbSecurityGroups": {},
    "route53HealthChecks": {},
    "route53HostedZones": {},
    "route53RecordSets": {},
    "s3Buckets": {},
    "snsTopics": {},
    "sqsQueues": {},
    "sshKeyPairs": {},
    "vaultApprole": {},
    "vpc": {},
    "vpcCustomerGateways": {},
    "vpcDhcpOptions": {},
    "vpcEgressOnlyInternetGateways": {},
    "vpcEndpoints": {},
    "vpcInternetGateways": {},
    "vpcNatGateways": {},
    "vpcNetworkAcls": {},
    "vpcNetworkInterfaceAttachments": {},
    "vpcNetworkInterfaces": {},
    "vpcRouteTableAssociations": {},
    "vpcRouteTables": {},
    "vpcRoutes": {},
    "vpcSubnets": {}
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment