nix-config/modules/devtools.nix

57 lines
1 KiB
Nix
Raw Normal View History

2022-10-03 13:16:02 +02:00
{ pkgs, inputs, ... }: {
environment.systemPackages = with pkgs; [
# general
cmake
gcc
2023-03-07 17:25:44 +01:00
gef
gdb
binutils
2023-03-07 17:25:44 +01:00
clang_15
clang-tools_15
2022-10-17 01:21:43 +02:00
direnv
2024-12-31 17:13:04 +01:00
# (nix-direnv.override { enableFlakes = true; })
2023-02-09 20:54:04 +01:00
sops
2022-10-03 13:16:02 +02:00
# rust
2024-12-31 17:13:04 +01:00
# (inputs.fenix.packages."x86_64-linux".stable.toolchain)
2022-10-03 13:16:02 +02:00
# nix
2024-12-31 17:13:04 +01:00
# rnix-lsp
2023-01-09 18:23:59 +01:00
nil
2022-10-24 22:09:45 +02:00
nixpkgs-fmt
2023-01-14 12:57:53 +01:00
nix-index
2022-10-29 20:38:12 +02:00
# julia
2023-01-17 20:58:52 +01:00
julia
2023-01-10 00:12:33 +01:00
# hardware
kicad
2025-01-01 16:37:23 +01:00
freecad-wayland
2022-10-03 13:16:02 +02:00
];
2022-10-17 01:21:43 +02:00
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
}