Skip to content
Discussion options

You must be logged in to vote

Hey! using terranix sounds awesome!

I believe you can try this:

{ den, inputs, ... }:
{
  den.aspects.my-infra = {
    terranix = {
      # you know what to do here. 
    }; 
  };

  perSystem = {pkgs, ...}: {
    packages.my-infra = inputs.terranix.lib.terranixConfiguration {
      inherit (pkgs.stdenv.targetPlatform) system;
      modules = [
        den.aspects.my-infra.modules.terranix # ask Den to resolve the terranix class module.
      ];
    };
  };
}

If that works and you want den.terraform.<system>.<name> syntax, take a look at how hosts are defined, specially the instantiate and intoAttr attributes (in _types.nix)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by esselius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants