-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
54 lines (46 loc) · 1.31 KB
/
shell.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
{ mkShell
, scripts
, pkgs
, self
, ...
}: mkShell {
name = "selfhosted-dev";
packages = [
# terraform and admin
pkgs.terraform
pkgs.vault-bin
pkgs.nomad_1_9
pkgs.consul
pkgs.bws
# gcloud + components
# see https://nixos.wiki/wiki/Google_Cloud_SDK
(pkgs.google-cloud-sdk.withExtraComponents (with pkgs.google-cloud-sdk.components; [ ]))
pkgs.colmena
pkgs.fish
pkgs.seaweedfs
pkgs.wander
pkgs.attic
pkgs.grpcurl
# for development
pkgs.go
pkgs.pkg-config
# Nix pinned in order to be able to compile Nixmad
# pkgs.nixVersions.nix_2_19
# until https://nixpkgs-tracker.ocfox.me/?pr=356133 lands
pkgs.nixVersions.nix_2_24
scripts.nixmad
scripts.shipper
scripts.bws-get
scripts.keychain-get
scripts.gen-protos
pkgs.protoc-gen-go
];
shellHook = ''
export BWS_ACCESS_TOKEN=$(security find-generic-password -gw -l "bitwarden/secret/m3-cli")
fish --init-command 'abbr -a weeds "nomad alloc exec -i -t -task seaweed-filer -job seaweed-filer weed shell -master seaweed-master-http.nomad:9333" ' && exit
'';
NOMAD_ADDR = "https://inst-kzsrv-control.golden-dace.ts.net:4646";
CONSUL_ADDR = "https://inst-kzsrv-control.golden-dace.ts.net:8501";
VAULT_ADDR = "https://vault.dcotta.com:8200";
NIX_PATH = "";
}