nix-config/modules/devtools.nix
2025-01-02 16:29:05 +01:00

57 lines
1 KiB
Nix

{ pkgs, inputs, ... }: {
environment.systemPackages = with pkgs;
let
kicad = pkgs.kicad.override {
addons = with pkgs.kicadAddons; [ kikit kikit-library ];
};
in
[
# general
cmake
gcc
gef
gdb
binutils
clang_15
clang-tools_15
direnv
# (nix-direnv.override { enableFlakes = true; })
sops
nil
nixpkgs-fmt
nix-index
julia
kicad
freecad-wayland
imhex
];
# Wireshark
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
users.users."0xa".extraGroups = [ "wireshark" ];
## Julia
environment.variables = {
JULIA_NUM_THREADS = "8";
};
## 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"
];
}