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";
|
|
|
|
|
|
2022-09-24 14:37:44 +00:00
|
|
|
|
services.mysql = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.mariadb;
|
|
|
|
|
settings = {
|
|
|
|
|
mysqld = {
|
|
|
|
|
innodb_read_io_threads = 256;
|
|
|
|
|
innodb_write_io_threads = 256;
|
|
|
|
|
innodb_io_capacity = 100500;
|
|
|
|
|
innodb_buffer_pool_size = "28G";
|
|
|
|
|
innodb_log_buffer_size = "256M";
|
|
|
|
|
innodb_log_file_size = "1G";
|
|
|
|
|
innodb_flush_log_at_trx_commit = 0;
|
|
|
|
|
innodb_doublewrite = 0;
|
|
|
|
|
innodb_open_files = 100500;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2019-05-31 00:02:30 +00:00
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
|
|
|
|
|
virtualisation.libvirtd = {
|
|
|
|
|
enable = true;
|
2022-05-11 14:30:30 +00:00
|
|
|
|
qemu.verbatimConfig = ''
|
2019-05-31 00:02:30 +00:00
|
|
|
|
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; [
|
2022-05-11 14:42:10 +00:00
|
|
|
|
gnumake
|
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
|
2022-10-16 13:13:23 +00:00
|
|
|
|
binutils conda zopfli graphviz
|
|
|
|
|
unstable.libimobiledevice unstable.ifuse
|
2021-02-09 17:09:21 +00:00
|
|
|
|
|
2022-05-11 14:41:19 +00:00
|
|
|
|
unstable.exoscale-cli unstable.metal-cli
|
|
|
|
|
|
2021-02-09 17:09:21 +00:00
|
|
|
|
# development
|
2022-09-24 14:37:07 +00:00
|
|
|
|
sbcl go global
|
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
|
2022-09-24 14:37:07 +00:00
|
|
|
|
qemu_kvm
|
2019-05-31 00:02:30 +00:00
|
|
|
|
virtmanager
|
2022-09-24 14:37:07 +00:00
|
|
|
|
virt-viewer
|
2019-05-31 00:02:30 +00:00
|
|
|
|
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
|
|
|
|
|
|
2022-10-16 13:14:07 +00:00
|
|
|
|
(unstable.emacs.pkgs.withPackages(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
|
2022-09-24 14:37:07 +00:00
|
|
|
|
solidity-mode go-mode ponylang-mode zig-mode
|
2022-10-16 13:14:07 +00:00
|
|
|
|
gotools lua-mode
|
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
|
2022-09-24 14:37:07 +00:00
|
|
|
|
rofi xorg.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
|
2022-09-24 14:37:07 +00:00
|
|
|
|
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
|
|
|
|
|
2022-09-24 14:37:07 +00:00
|
|
|
|
ghidra nonfree.davinci-resolve
|
2021-10-07 13:50:21 +00:00
|
|
|
|
|
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 \
|
|
|
|
|
$@
|
|
|
|
|
'')
|
2019-05-31 00:02:30 +00:00
|
|
|
|
];
|
|
|
|
|
}
|