nix-config/modules/devtools.nix

34 lines
677 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
2022-10-17 01:21:43 +02:00
(inputs.fenix.packages."x86_64-linux".stable.toolchain)
2022-10-03 13:16:02 +02:00
# nix
rnix-lsp
];
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
}