22
flake.nix
22
flake.nix
@@ -2,26 +2,38 @@
|
||||
description = "Flake to work with homelab setup";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
|
||||
# Import nixpkgs to access packages
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"terraform"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Define the devshell
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
helmfile
|
||||
kubernetes-helm
|
||||
kubernetes-helmPlugins.helm-diff
|
||||
kubectl
|
||||
nil
|
||||
terraform
|
||||
tflint
|
||||
|
||||
# Adding node for copilot
|
||||
nodejs_24
|
||||
|
||||
# cli tools
|
||||
nodePackages.cdktf-cli
|
||||
rm-improved
|
||||
];
|
||||
};
|
||||
in {
|
||||
|
||||
Reference in New Issue
Block a user