1
0
Fork 0
server-configuration/flake.nix
2025-02-20 23:49:05 -06:00

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