Flake for my NixOS devices
1{
2 pkgs,
3 inputs,
4 ...
5}: {
6 nixpkgs.overlays = [
7 inputs.rust-overlay.overlays.default
8 ];
9
10 environment.systemPackages = with pkgs; [
11 (rust-bin.selectLatestNightlyWith (toolchain:
12 toolchain.default.override {
13 targets = ["wasm32-unknown-unknown"];
14 }))
15 cargo-tauri
16 mprocs
17 evcxr
18 ];
19
20 # Use mold for linking Rust code
21 # home-manager.users.bean.home.file.".cargo/config.toml".text = ''
22 # [target.x86_64-unknown-linux-gnu]
23 # linker = "${pkgs.clang}/bin/clang"
24 # rustflags = [
25 # "-C", "link-arg=--ld-path=${pkgs.mold}/bin/mold",
26 # ]
27 # '';
28}