1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat: miscellaneous updates

This commit is contained in:
Ryan Cao 2025-05-30 20:44:04 +08:00
parent 42a1293f6d
commit e495878b0e
Signed by: ryanccn
GPG key ID: F605AB4AF937D5D0
12 changed files with 119 additions and 82 deletions

View file

@ -5,23 +5,12 @@
{
pkgs,
inputs,
lib,
config,
...
}:
let
toml = pkgs.formats.toml { };
rust-bin = inputs.rust-overlay.lib.mkRustBin { } pkgs;
in
{
home.file."${config.xdg.dataHome}/cargo/config.toml".source = toml.generate "config.toml" {
linker = "${lib.getExe pkgs.clang}";
rustflags = [
"-C"
"link-arg=-fuse-ld=${lib.getExe pkgs.mold}"
];
};
home.packages = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [