feat: add nix flake for development

This commit is contained in:
2024-11-20 15:03:20 +05:00
parent e503427098
commit c8257741e1
4 changed files with 94 additions and 0 deletions

31
flake.nix Normal file
View File

@@ -0,0 +1,31 @@
{
description = "Flake to work with homelab setup";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
# Import nixpkgs to access packages
pkgs = import nixpkgs { inherit system; };
# Define the devshell
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
helmfile
kubernetes-helm
kubernetes-helmPlugins.helm-diff
kubectl
# Adding node for copilot
nodejs_20
];
};
in {
# Define the devShell for the current system
devShell = devShell;
}
);
}