khuedoan-homelab/flake.nix
Khue Doan 21fac43e57 refactor: replace Terraform binary with OpenTofu
OpenTofu is a drop-in replacement for Terraform, so aside from changing
the binary, it only needs some minor adjustments.
2024-11-24 00:09:15 +07:00

58 lines
1.2 KiB
Nix

{
description = "Homelab";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
with pkgs;
{
devShells.default = mkShell {
packages = [
ansible
ansible-lint
bmake
diffutils
docker
docker-compose
dyff
git
go
gotestsum
iproute2
jq
k9s
kanidm
kube3d
kubectl
kubernetes-helm
kustomize
libisoburn
neovim
openssh
opentofu # Drop-in replacement for Terraform
p7zip
pre-commit
shellcheck
yamllint
(python3.withPackages (p: with p; [
jinja2
kubernetes
mkdocs-material
netaddr
pexpect
rich
]))
];
};
}
);
}