nix-config/modules/devtools.nix

70 lines
1.2 KiB
Nix
Raw Normal View History

2025-01-11 03:55:19 +01:00
{ pkgs, inputs, ... }:
{
2022-10-03 13:16:02 +02:00
2025-01-11 03:55:19 +01:00
environment.systemPackages =
with pkgs;
let
kicad = pkgs.kicad.override {
addons = with pkgs.kicadAddons; [
kikit
kikit-library
];
};
in
[
# general
cmake
gcc
gef
gdb
binutils
binwalk
clang
clang-tools
direnv
sops
nil
nixpkgs-fmt
nix-index
kicad
freecad-wayland
imhex
python313Full
2025-01-12 13:54:00 +01:00
pkgs.nixfmt-rfc-style
treefmt
2025-01-14 22:49:48 +01:00
android-tools
2025-01-11 03:55:19 +01:00
];
2022-10-17 01:21:43 +02:00
2025-01-14 22:49:48 +01:00
# android stuff
services.udev.packages = [
pkgs.android-udev-rules
];
2023-01-10 00:12:33 +01:00
# Wireshark
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
2024-12-31 17:13:04 +01:00
users.users."0xa".extraGroups = [ "wireshark" ];
2023-01-10 00:12:33 +01:00
2022-10-29 20:38:12 +02:00
## Julia
environment.variables = {
JULIA_NUM_THREADS = "8";
};
2022-10-17 01:21:43 +02:00
## direnv
programs.bash.interactiveShellInit = ''
eval "$(direnv hook bash)"
'';
programs.zsh.interactiveShellInit = ''
eval "$(direnv hook zsh)"
'';
# nix options for derivations to persist garbage collection
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
environment.pathsToLink = [
"/share/nix-direnv"
];
2022-10-03 13:16:02 +02:00
}