2019-05-31 00:02:30 +00:00
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
2021-10-07 13:50:21 +00:00
|
|
|
|
unstable = import <unstable> {};
|
2022-05-11 14:28:21 +00:00
|
|
|
|
nonfree = import <nixos> {
|
|
|
|
|
config.allowUnfree = true;
|
|
|
|
|
chromium.enableWideVine = true;
|
|
|
|
|
};
|
2021-10-07 13:50:21 +00:00
|
|
|
|
ghidra = pkgs.ghidra-bin.overrideAttrs (attrs: {
|
|
|
|
|
installPhase = ''
|
|
|
|
|
${attrs.installPhase}
|
|
|
|
|
sed -i 's/uiScale=1/uiScale=2/' $out/lib/ghidra/support/launch.properties
|
|
|
|
|
'';
|
|
|
|
|
});
|
2019-05-31 00:02:30 +00:00
|
|
|
|
in {
|
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
programs.browserpass.enable = true;
|
|
|
|
|
programs.adb.enable = true;
|
2019-08-07 19:02:24 +00:00
|
|
|
|
programs.java.enable = true;
|
2019-05-31 00:02:30 +00:00
|
|
|
|
|
|
|
|
|
services.ntp.enable = true;
|
|
|
|
|
services.tlp.enable = true;
|
|
|
|
|
services.vnstat.enable = true;
|
|
|
|
|
|
2021-10-07 13:50:46 +00:00
|
|
|
|
services.usbmuxd.enable = true;
|
|
|
|
|
services.usbmuxd.user = "user";
|
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
|
|
|
|
|
virtualisation.libvirtd = {
|
|
|
|
|
enable = true;
|
|
|
|
|
qemuVerbatimConfig = ''
|
|
|
|
|
namespaces = []
|
|
|
|
|
user = "user"
|
|
|
|
|
group = "users"
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2019-06-20 18:40:06 +00:00
|
|
|
|
services.tor.enable = true;
|
|
|
|
|
services.tor.client.enable = true;
|
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
2020-11-20 18:44:01 +00:00
|
|
|
|
nonfree.codeql
|
2019-12-26 17:43:15 +00:00
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
# utils
|
2019-07-18 18:27:22 +00:00
|
|
|
|
wget tmux zsh vim htop acpi bc p7zip mpv
|
2019-10-14 22:25:15 +00:00
|
|
|
|
git pass unzip zip w3m whois dnsutils nomacs
|
2019-10-13 18:16:14 +00:00
|
|
|
|
parted iotop nmap tldr sshfs qrencode
|
2021-02-09 17:09:21 +00:00
|
|
|
|
oathToolkit neomutt pciutils openvpn
|
|
|
|
|
lsof tcpdump pmount woeusb
|
|
|
|
|
file mkpasswd heroku hdparm debootstrap
|
2019-05-31 00:02:30 +00:00
|
|
|
|
proot fakeroot fakechroot lm_sensors powertop
|
|
|
|
|
exfat traceroute graphicsmagick-imagemagick-compat
|
|
|
|
|
pdftk vnstat dunst ghostscript graphicsmagick
|
2021-02-09 17:09:21 +00:00
|
|
|
|
texlive.combined.scheme-full rubber pandoc
|
2019-08-24 09:10:33 +00:00
|
|
|
|
jq socat ffmpeg-full exiftool apktool mdl wine zstd
|
2021-05-14 17:17:00 +00:00
|
|
|
|
tesseract dislocker ffmpeg-normalize mkvtoolnix-cli
|
2021-10-07 13:54:30 +00:00
|
|
|
|
binutils conda zopfli libimobiledevice ifuse graphviz
|
2021-02-09 17:09:21 +00:00
|
|
|
|
|
|
|
|
|
# development
|
|
|
|
|
sbcl go
|
2019-05-31 00:02:30 +00:00
|
|
|
|
|
|
|
|
|
# gpg-related
|
2019-12-02 23:03:52 +00:00
|
|
|
|
gnupg yubikey-manager yubikey-personalization
|
2019-05-31 00:02:30 +00:00
|
|
|
|
|
|
|
|
|
# virtualization
|
|
|
|
|
kvm
|
|
|
|
|
virtmanager
|
|
|
|
|
virtviewer
|
|
|
|
|
spice
|
|
|
|
|
spice-gtk
|
|
|
|
|
|
2020-03-19 09:32:24 +00:00
|
|
|
|
(nonfree.python3.withPackages(ps: with ps; [
|
2019-07-21 17:23:14 +00:00
|
|
|
|
ipython
|
|
|
|
|
pillow opencv3 torchvision
|
2020-03-19 09:32:31 +00:00
|
|
|
|
PyGithub telethon
|
2019-08-02 15:14:30 +00:00
|
|
|
|
# Forensics
|
|
|
|
|
binwalk
|
2019-07-21 17:23:14 +00:00
|
|
|
|
]))
|
|
|
|
|
|
2021-10-07 13:54:30 +00:00
|
|
|
|
uefi-firmware-parser
|
|
|
|
|
|
|
|
|
|
(unstable.emacsWithPackages(epkgs:
|
2019-07-19 18:31:54 +00:00
|
|
|
|
# MELPA (Milkypostman’s Emacs Lisp Package Archive)
|
|
|
|
|
(with epkgs.melpaPackages; [
|
|
|
|
|
# Programming languages modes
|
|
|
|
|
haskell-mode rust-mode scala-mode csharp-mode d-mode
|
2019-10-07 21:04:56 +00:00
|
|
|
|
solidity-mode php-mode go-mode ponylang-mode zig-mode
|
2020-06-27 17:37:17 +00:00
|
|
|
|
goimports
|
2019-07-19 18:31:54 +00:00
|
|
|
|
# Development
|
|
|
|
|
helm-gtags slime xcscope go-autocomplete
|
|
|
|
|
# Configuration languages modes
|
|
|
|
|
nix-mode markdown-mode dockerfile-mode yaml-mode ssh-config-mode
|
|
|
|
|
toml-mode pcap-mode
|
|
|
|
|
# Version control
|
2021-10-07 13:54:30 +00:00
|
|
|
|
magit git-gutter git-timemachine
|
2019-07-19 18:31:54 +00:00
|
|
|
|
# Generic
|
2021-10-07 13:54:30 +00:00
|
|
|
|
smex w3m org-kanban org-brain org-roam use-package
|
|
|
|
|
selectrum selectrum-prescient
|
2019-07-19 18:31:54 +00:00
|
|
|
|
# Appearance
|
2020-06-01 08:39:05 +00:00
|
|
|
|
zenburn-theme solarized-theme wc-mode
|
2020-03-19 08:38:01 +00:00
|
|
|
|
# NixOS
|
|
|
|
|
company-nixos-options helm-nixos-options
|
2019-07-19 18:31:54 +00:00
|
|
|
|
])
|
|
|
|
|
++
|
|
|
|
|
# GNU Elpa
|
|
|
|
|
(with epkgs.elpaPackages; [
|
|
|
|
|
# Programming languages modes
|
|
|
|
|
cobol-mode
|
|
|
|
|
])
|
2019-08-15 10:00:14 +00:00
|
|
|
|
))
|
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
# re
|
|
|
|
|
radare2 radare2-cutter
|
|
|
|
|
|
|
|
|
|
# x render
|
|
|
|
|
vdpauinfo
|
|
|
|
|
|
2019-10-12 02:58:52 +00:00
|
|
|
|
# fonts
|
2020-03-21 18:43:11 +00:00
|
|
|
|
gnome3.gnome-font-viewer
|
2019-10-12 02:58:52 +00:00
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
# base x
|
2020-11-20 18:44:01 +00:00
|
|
|
|
rofi xlibs.xmodmap xsecurelock kitty
|
2019-10-13 14:23:04 +00:00
|
|
|
|
libnotify gtk_engines x2x evtest
|
2020-01-06 15:25:31 +00:00
|
|
|
|
pulsemixer arc-theme xclip
|
2019-05-31 00:02:30 +00:00
|
|
|
|
gnome3.dconf gnome3.dconf-editor gsettings-desktop-schemas gsettings-qt
|
2019-06-20 18:40:06 +00:00
|
|
|
|
xorg.xcursorthemes capitaine-cursors gnome3.cheese
|
2019-05-31 00:02:30 +00:00
|
|
|
|
|
|
|
|
|
# x apps
|
2021-10-07 13:54:30 +00:00
|
|
|
|
escrotum evince gimp gnome3.gnome-maps inkscape
|
2020-06-04 06:46:37 +00:00
|
|
|
|
android-file-transfer libreoffice electrum gnome3.nautilus
|
2021-10-07 13:54:30 +00:00
|
|
|
|
signal-desktop signal-cli rdesktop wire-desktop
|
2019-05-31 00:02:30 +00:00
|
|
|
|
|
2021-10-07 13:50:21 +00:00
|
|
|
|
ghidra
|
|
|
|
|
|
2019-07-23 19:06:59 +00:00
|
|
|
|
(writeShellScriptBin "chromium" ''
|
2020-11-20 18:44:01 +00:00
|
|
|
|
${chromium}/bin/chromium --force-dark-mode \
|
2022-05-11 14:27:19 +00:00
|
|
|
|
--start-maximized \
|
|
|
|
|
$@
|
2019-07-23 19:06:59 +00:00
|
|
|
|
'')
|
2022-05-11 14:28:21 +00:00
|
|
|
|
(writeShellScriptBin "chromium-nonfree" ''
|
|
|
|
|
${nonfree.chromium}/bin/chromium --force-dark-mode \
|
|
|
|
|
--start-maximized \
|
|
|
|
|
$@
|
|
|
|
|
'')
|
2021-10-07 13:54:30 +00:00
|
|
|
|
|
|
|
|
|
(stdenv.mkDerivation {
|
|
|
|
|
pname = "imjtool";
|
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "http://newandroidbook.com/tools/imjtool.tgz";
|
|
|
|
|
sha256 = "sha256:027zlxsssfffhrlgfamcjn4whcarm8gh687xswz3mbmyra0rgspd";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
setSourceRoot = "sourceRoot=`pwd`";
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
buildInputs = [
|
|
|
|
|
zlib lzma bzip2
|
|
|
|
|
];
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
lz4
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
cp imjtool.ELF64 $out/bin/imjtool
|
|
|
|
|
'';
|
|
|
|
|
})
|
2019-05-31 00:02:30 +00:00
|
|
|
|
];
|
|
|
|
|
}
|