nix-config/modules/devtools.nix

42 lines
793 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
(nix-direnv.override { enableFlakes = true; })
2022-10-03 13:16:02 +02:00
# rust
2023-01-03 15:06:48 +01:00
(inputs.fenix.packages."x86_64-linux".stable.toolchain)
2022-10-03 13:16:02 +02:00
# nix
rnix-lsp
2022-10-24 22:09:45 +02:00
nixpkgs-fmt
2022-10-29 20:38:12 +02:00
# julia
julia-bin
2022-10-03 13:16:02 +02:00
];
2022-10-17 01:21:43 +02: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
}