nix-config/modules/devtools.nix

53 lines
979 B
Nix
Raw Normal View History

2022-10-03 13:16:02 +02:00
{ pkgs, inputs, ... }: {
environment.systemPackages = with pkgs; [
# general
cmake
gcc
binutils
clang
clang-tools
2022-10-17 01:21:43 +02:00
direnv
2023-01-09 23:07:46 +01:00
(nix-direnv.override { enableFlakes = true; })
2022-10-03 13:16:02 +02:00
# rust
2023-01-14 12:57:53 +01:00
(inputs.fenix.packages."x86_64-linux".stable.toolchain)
2022-10-03 13:16:02 +02:00
# nix
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
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;
};
users.users.grue.extraGroups = [ "wireshark" ];
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
}