add nix container

This commit is contained in:
Alex
2025-08-27 09:12:59 +02:00
parent 8d65ab9546
commit fdb5df5204
2 changed files with 32 additions and 1 deletions

View File

@@ -46,3 +46,13 @@ sudo podman run --rm -it \
-e PODMAN_SOCK=unix:///run/podman/podman.sock \ -e PODMAN_SOCK=unix:///run/podman/podman.sock \
hashicorp/terraform:1.13 apply hashicorp/terraform:1.13 apply
``` ```
## Development
### NixOS
Start nix container with
```bash
nix develop
```

21
flake.nix Normal file
View File

@@ -0,0 +1,21 @@
{
description = "A flake for Terraform development";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: {
devShells.x86_64-linux.default =
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
vscode-extensions.hashicorp.terraform
];
};
};
}