Files
homelab/flake.nix
T
2025-02-21 21:20:27 -05:00

44 lines
1.0 KiB
Nix

{
description = "";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
futils.url = "github:numtide/flake-utils";
};
outputs =
{ self, nixpkgs, futils }: (
futils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
# utilities
yq
bat
jq
# k8s
k3d
(wrapHelm kubernetes-helm {
plugins = with pkgs.kubernetes-helmPlugins; [
helm-diff
];
})
helmfile-wrapped
argocd
yq
jq
];
shellHook = ''
echo "$(pwd)"
export PATH="$(pwd)/bin:$PATH"
export PROMPT="🏠> $PROMPT"
echo "Welcome to HomeLab!"
'';
};
}
)
);
}