This commit is contained in:
parent
838ada9aaa
commit
7b7bcac73a
4 changed files with 145 additions and 7 deletions
35
modules/flake/terranix.nix
Normal file
35
modules/flake/terranix.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.terranix.flakeModule
|
||||
];
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
package = pkgs.opentofu.withPlugins (p: [
|
||||
p.external
|
||||
p.local
|
||||
p.null
|
||||
p.tls
|
||||
p.incus
|
||||
]);
|
||||
in
|
||||
{
|
||||
terranix = {
|
||||
terranixConfigurations = {
|
||||
tnix = {
|
||||
terraformWrapper = {
|
||||
inherit package;
|
||||
};
|
||||
workdir = "terraform";
|
||||
modules = [
|
||||
# ../terranix/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue