use terranix flake parts module directly
This commit is contained in:
parent
90cdc7b8a5
commit
b75f9752d1
2 changed files with 12 additions and 80 deletions
|
|
@ -1,22 +1,17 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
let
|
||||
lib = inputs.nixpkgs.lib;
|
||||
utils = import ./utils.nix { inherit inputs lib; };
|
||||
inherit (utils) mkTerranixDerivation;
|
||||
|
||||
configs = {
|
||||
# Example:
|
||||
# myconfig = {
|
||||
# modules = [ ./terraform/myconfig.nix ];
|
||||
# };
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
perSystem =
|
||||
{ system, ... }:
|
||||
{
|
||||
packages = mkTerranixDerivation { inherit system configs; };
|
||||
imports = [
|
||||
inputs.terranix.flakeModule
|
||||
];
|
||||
|
||||
perSystem = {
|
||||
terranix.terranixConfigurations = {
|
||||
# Example:
|
||||
# myconfig = {
|
||||
# modules = [ ./terraform/myconfig.nix ];
|
||||
# extraArgs = { }; # optional
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue