-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
57 lines (55 loc) · 1.69 KB
/
flake.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
55
56
57
{
description = "Awww shit, here we go again";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
rcds.url = "github:sigpwny/rcds";
rctf = {
url = "github:redpwn/rctf";
flake = false;
};
traefik = {
url = "github:traefik/traefik";
flake = false;
};
};
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
apps.get_key = {
type = "app";
program = (pkgs.writeShellScriptBin "get_key" ''
head -c 32 /dev/urandom | base64 -w 0
'') + "/bin/get_key";
};
devShells.default = with pkgs; mkShellNoCC {
packages = [
terraform
colima
docker docker-compose
kubectl
(google-cloud-sdk.withExtraComponents( with google-cloud-sdk.components; [
gke-gcloud-auth-plugin
]))
postgresql
nmap
certbot
git-crypt
inputs.rcds.packages.${system}.rcds
(python311.withPackages(ps: with ps; [
pwntools
]))
];
# not used, useful for debugging though
RCTF_INSTALLER = (inputs.rctf + "/install/install.sh");
COMPOSE_FILE = (inputs.rctf + "/docker-compose.yml");
DOCKER_FILE = (inputs.rctf + "/Dockerfile");
TRAEFIK_DEF = (inputs.traefik + "/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml");
};
});
}