This commit is contained in:
parent
838ada9aaa
commit
7b7bcac73a
4 changed files with 145 additions and 7 deletions
|
|
@ -53,7 +53,7 @@ in
|
|||
autoRollback = false;
|
||||
magicRollback = true;
|
||||
user = "root";
|
||||
# remoteBuild = true;
|
||||
remoteBuild = true;
|
||||
nodes = lib.mapAttrs genNode deployableNodes;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue