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 = ./.; src = ./.;
# Add overlays for the `nixpkgs` channel. # Add overlays for the `nixpkgs` channel.
overlays = with inputs; overlays = with inputs; [ nix-matlab.overlay ];
[
nix-matlab.overlay
];
snowfall = { snowfall = {
# The root of the snowfall config # The root of the snowfall config

View File

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

View File

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