27 lines
574 B
Nix
27 lines
574 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }:
|
|
let
|
|
allSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
in
|
|
{
|
|
devShells = nixpkgs.lib.genAttrs allSystems (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
tofuPkg = pkgs.opentofu.withPlugins (p: [
|
|
pkgs.terraform-providers.hcloud
|
|
]);
|
|
in {
|
|
default = pkgs.mkShell {
|
|
buildInputs = [
|
|
tofuPkg
|
|
pkgs.terraform-ls
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|