partial implementation of terranix
All checks were successful
/ test (push) Successful in 35s

This commit is contained in:
Jermeiah S 2025-06-20 13:10:49 -04:00
parent 838ada9aaa
commit 7b7bcac73a
No known key found for this signature in database
4 changed files with 145 additions and 7 deletions

View file

@ -53,7 +53,7 @@ in
autoRollback = false;
magicRollback = true;
user = "root";
# remoteBuild = true;
remoteBuild = true;
nodes = lib.mapAttrs genNode deployableNodes;
};
}

View 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
];
};
};
};
};
}

View file

@ -6,11 +6,13 @@
inputs.nixos-unified.flakeModules.default
inputs.nixos-unified.flakeModules.autoWire
];
perSystem = { self', pkgs, ... }: {
# For 'nix fmt'
formatter = pkgs.nixpkgs-fmt;
perSystem =
{ self', pkgs, ... }:
{
# For 'nix fmt'
formatter = pkgs.nixpkgs-fmt;
# Enables 'nix run' to activate.
packages.default = self'.packages.activate;
};
# Enables 'nix run' to activate.
packages.default = self'.packages.activate;
};
}