Make rust use unstable, format code

This commit is contained in:
Julian Mutter 2024-05-29 10:17:18 +02:00
parent a64c867c98
commit 370ebe95a8
3 changed files with 10 additions and 11 deletions

View File

@ -31,10 +31,7 @@
src = ./.;
# Add overlays for the `nixpkgs` channel.
overlays = with inputs;
[
nix-matlab.overlay
];
overlays = with inputs; [ nix-matlab.overlay ];
snowfall = {
# The root of the snowfall config

View File

@ -48,13 +48,14 @@ config, ... }: {
# Rust setup
unstable.rustc
rustfmt
cargo
clippy
rust-analyzer
unstable.rustfmt
unstable.cargo
unstable.clippy
unstable.rust-analyzer
# Further tools
unstable.nh # nix helper
cntr # nix debugger
(lib.frajul.my-helper-function lazygit)
languagetool

View File

@ -50,7 +50,7 @@ in {
dockfmt # docker
google-java-format # java
black # python
rustfmt # rust
unstable.rustfmt # rust
shfmt
graphviz
@ -60,7 +60,8 @@ in {
emacs-all-the-icons-fonts
];
home.activation.installDoomEmacs = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
home.activation.installDoomEmacs =
lib.home-manager.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -d "/home/julian/.config/emacs" ]; then
$DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 --single-branch "${doomRepoUrl}" "/home/julian/.config/emacs"
fi
@ -68,5 +69,5 @@ in {
$DRY_RUN_CMD ${pkgs.git}/bin/git clone "${configRepoUrl}" "/home/julian/.config/doom"
fi
'';
};
};
}