Skip to content

Commit 4ce8fe9

Browse files
committed
chore: add nix flake for k8s and go development
Signed-off-by: suin <[email protected]>
1 parent 5a8f29f commit 4ce8fe9

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils }:
8+
flake-utils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = import nixpkgs {
11+
inherit system;
12+
};
13+
14+
tools = with pkgs; [
15+
kubectl
16+
kind
17+
go
18+
];
19+
in
20+
{
21+
devShells.default = pkgs.mkShell {
22+
buildInputs = tools;
23+
shellHook = ''
24+
export KUBECONFIG="$(pwd)/.kube"
25+
'';
26+
};
27+
28+
formatter = pkgs.nixpkgs-fmt;
29+
}
30+
);
31+
}

0 commit comments

Comments
 (0)