From 31c4e373b9842fd4dbf30ca1a68da18fbe1623df Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 21 Aug 2023 23:54:18 +0200 Subject: [PATCH] Add ctf-shell, minor worf fixes --- hosts/worf/configuration.nix | 8 +++--- hosts/worf/zsh.nix | 5 +++- shells/ctf.nix | 51 ++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 shells/ctf.nix diff --git a/hosts/worf/configuration.nix b/hosts/worf/configuration.nix index 3aca848..a8bdd82 100644 --- a/hosts/worf/configuration.nix +++ b/hosts/worf/configuration.nix @@ -5,10 +5,10 @@ nixpkgs.config.allowUnfree = true; nix = { - gc = { - automatic = true; - options = "--delete-older-than 2d"; - }; + # gc = { + # automatic = true; + # options = "--delete-older-than 2d"; + # }; settings.experimental-features = ["nix-command" "flakes"]; }; diff --git a/hosts/worf/zsh.nix b/hosts/worf/zsh.nix index 0e01cf3..f0736f7 100644 --- a/hosts/worf/zsh.nix +++ b/hosts/worf/zsh.nix @@ -44,7 +44,10 @@ l = "exa -l"; tree = "exa --tree --icons"; rebuild = "darwin-rebuild switch --flake /Users/felixalb/nix"; - shell = "nix-shell --run zsh"; + s = "nix-shell --run zsh"; + sp = "nix-shell --run zsh -p"; + em = "emacsclient -c"; + emnw = "emacsclient -nw"; gst = "git status -sb"; gcm = "git commit -m"; gps = "git push"; diff --git a/shells/ctf.nix b/shells/ctf.nix new file mode 100644 index 0000000..cf4cbcc --- /dev/null +++ b/shells/ctf.nix @@ -0,0 +1,51 @@ +{ pkgs ? import {} }: + pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + python3 + (with python3Packages; [ + beautifulsoup4 + numpy + pillow + pwntools + pycryptodome + requests + ]) + + nodejs + php + #sage + + # neovim + bat + binwalk + coreutils + gnugrep + gnutar + ripgrep + + # gdb + # pwndbg + ghidra + pwntools + ropgadget + ## ropper + + metasploit + + exiftool + steghide + # stegsolve + #gimp + #sxiv + #audacity + + #wireshark + dig + nmap + rustscan + + ## hashcat + john + + ]; +}