add nix container
This commit is contained in:
12
README.md
12
README.md
@@ -45,4 +45,14 @@ sudo podman run --rm -it \
|
||||
-w /workspace \
|
||||
-e PODMAN_SOCK=unix:///run/podman/podman.sock \
|
||||
hashicorp/terraform:1.13 apply
|
||||
```
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
### NixOS
|
||||
|
||||
Start nix container with
|
||||
|
||||
```bash
|
||||
nix develop
|
||||
```
|
||||
|
||||
21
flake.nix
Normal file
21
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user