clean up fenix and add direnv
This commit is contained in:
parent
966f65a2fe
commit
78b28f5110
2 changed files with 20 additions and 13 deletions
|
@ -1,9 +1,5 @@
|
||||||
{ pkgs, inputs, ... }: {
|
{ pkgs, inputs, ... }: {
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
inputs.fenix.overlay
|
|
||||||
inputs.emacs-overlay.overlay
|
|
||||||
];
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# general
|
# general
|
||||||
cmake
|
cmake
|
||||||
|
@ -11,16 +7,27 @@
|
||||||
binutils
|
binutils
|
||||||
clang
|
clang
|
||||||
clang-tools
|
clang-tools
|
||||||
|
direnv
|
||||||
|
(nix-direnv.override { enableFlakes = true; })
|
||||||
# rust
|
# rust
|
||||||
(inputs.fenix.packages."x86_64-linux".stable.withComponents [
|
(inputs.fenix.packages."x86_64-linux".stable.toolchain)
|
||||||
"cargo"
|
|
||||||
"clippy"
|
|
||||||
"rust-src"
|
|
||||||
"rustc"
|
|
||||||
"rustfmt"
|
|
||||||
])
|
|
||||||
rust-analyzer-nightly
|
|
||||||
# nix
|
# nix
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
];
|
];
|
||||||
|
|
||||||
|
## 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"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,8 @@
|
||||||
allowBitmaps = true;
|
allowBitmaps = true;
|
||||||
useEmbeddedBitmaps = true;
|
useEmbeddedBitmaps = true;
|
||||||
defaultFonts.emoji = [
|
defaultFonts.emoji = [
|
||||||
"Twitter Color Emoji"
|
|
||||||
"Noto Color Emoji"
|
"Noto Color Emoji"
|
||||||
|
"Twitter Color Emoji"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue