-
Notifications
You must be signed in to change notification settings - Fork 2
/
env.nix
54 lines (43 loc) · 1.04 KB
/
env.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
let
syspkgs = import <nixpkgs> { };
channel = syspkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "0b904cfc7e2e84c5fe4943351602f980e106f225";
sha256 = "sha256-UDgDer7fjS0thPNZKlOyXEQB+lk6jwZog8RBC1INDPk=";
};
helm-plugins-dir = syspkgs.symlinkJoin {
name = "helm-plugins";
paths = with syspkgs.kubernetes-helmPlugins; [
helm-diff
helm-secrets
];
};
in
with (import channel) {};
stdenv.mkDerivation {
name = "mjolnir-tv-env";
buildInputs = with channel; [
nodejs
jq
google-cloud-sdk
terraform
kubeval
kubectl
kubernetes-helm
helmfile
k9s
doctl
act
figlet
lolcat
];
shellHook = ''
figlet "Mjolnir-TV deployment environment!" | lolcat --freq 0.5
npm install
export HELM_PLUGINS="${helm-plugins-dir}"
echo "
Make sure you have set DigitalOcean configuration in your env
"
'';
}