diff --git a/users/tao/helix.nix b/users/tao/helix.nix index 2d8df2d..3779963 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -39,6 +39,7 @@ indent = { tab-width = 8; unit = "\t"; }; } { name = "html"; auto-format = false; indent = { tab-width = 4; unit = "\t"; }; } + { name = "java"; auto-format = true; indent = { tab-width = 4; unit = "\t"; }; } { name = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; } { name = "typst"; indent = { tab-width = 4; unit = " "; }; } ]; diff --git a/users/tao/home.nix b/users/tao/home.nix index b8141fd..9b12a28 100644 --- a/users/tao/home.nix +++ b/users/tao/home.nix @@ -55,16 +55,27 @@ }; home.file.".cargo/config.toml".text = '' + [alias] + rr = "run --release" + [build] target = "x86_64-unknown-linux-musl" rustc-wrapper = "${pkgs.sccache}/bin/sccache" + [unstable] + codegen-backend = true + [provile.dev] debug = 0 strip = "debuginfo" + codegen-backend = "cranelift" + + [profile.release] + incremental = true [target.x86-unknown-linux-musl] - linker = "clang" + # linker = "musl-gcc" + # linker = "clang" rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"] '';