khuedoan-homelab/flake.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2023-10-27 16:37:53 +07:00
{
description = "Homelab";
inputs = {
2024-09-02 11:23:41 +07:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
2023-10-27 16:37:53 +07:00
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
2024-01-06 01:56:35 +07:00
# TODO remove unfree after removing Terraform
# (Source: https://xeiaso.net/blog/notes/nix-flakes-terraform-unfree-fix)
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
2023-10-27 16:37:53 +07:00
in
with pkgs;
{
devShells.default = mkShell {
packages = [
ansible
ansible-lint
bmake
diffutils
docker
docker-compose_1 # TODO upgrade to version 2
2024-01-08 21:10:25 +07:00
dyff
2023-10-27 16:37:53 +07:00
git
go
gotestsum
iproute2
jq
k9s
kanidm
2023-10-27 16:37:53 +07:00
kube3d
kubectl
kubernetes-helm
kustomize
libisoburn
neovim
openssh
p7zip
pre-commit
shellcheck
terraform # TODO replace with OpenTofu, Terraform is no longer FOSS
yamllint
(python3.withPackages (p: with p; [
jinja2
kubernetes
mkdocs-material
netaddr
pexpect
2023-10-27 16:37:53 +07:00
rich
]))
];
};
}
);
}