1
0
localhost/packages.nix

168 lines
4.4 KiB
Nix
Raw Normal View History

2019-05-31 00:02:30 +00:00
{ config, pkgs, ... }:
let
2021-10-07 13:50:21 +00:00
unstable = import <unstable> {};
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";
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
2021-10-07 13:54:30 +00:00
binutils conda zopfli libimobiledevice ifuse graphviz
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
(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:
# MELPA (Milkypostmans 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
gotools
# 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
# Generic
2021-10-07 13:54:30 +00:00
smex w3m org-kanban org-brain org-roam use-package
selectrum selectrum-prescient
# 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
])
++
# GNU Elpa
(with epkgs.elpaPackages; [
# Programming languages modes
cobol-mode
])
))
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
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
'')
(writeShellScriptBin "chromium-nonfree" ''
${nonfree.chromium}/bin/chromium --force-dark-mode \
--start-maximized \
$@
'')
2019-05-31 00:02:30 +00:00
];
}