No description
  • Nix 99.5%
  • Rust 0.5%
Find a file
2026-01-28 15:49:25 -08:00
nix readme and updates 2026-01-28 15:32:33 -08:00
src init 2026-01-28 15:30:24 -08:00
.envrc add watch file 2026-01-28 15:49:25 -08:00
.gitignore init 2026-01-28 15:30:24 -08:00
Cargo.lock init 2026-01-28 15:30:24 -08:00
Cargo.toml init 2026-01-28 15:30:24 -08:00
default.nix init 2026-01-28 15:30:24 -08:00
pkgs.nix init 2026-01-28 15:30:24 -08:00
readme.md more readme 2026-01-28 15:36:21 -08:00
shell.nix init 2026-01-28 15:30:24 -08:00

Wackery's Opinionated Rust Template

Uses niv + fenix to manage Rust. Provides both a shell and building via nix-build. Also provides direnv.

How to use

  1. Install niv because it makes deps easier. you dont technically need it but its recommended.
  2. use this repo as a template
  3. update the Cargo.toml to your liking
  4. update the meta section in pkgs.nix with info. See this
  5. start rusting

Included

  • Rust toolchain (customizable in pkgs.nix, you may need to update fenix if the version you want is not available.)
  • Nixpkgs (pinned to 25.11, updatable via niv update)
  • Fenix (pinned to a specific commit, updatable via niv update)
  • Gitignore.nix so that nix-build ignores files in .gitignore (and doesnt copy gigabytes to the nix store)

How to edit stuff

99% of the configuration is in pkgs.nix. You can add libraries, tools, and change the toolchain there. Anything you need for only shell use should be placed into shell.nix instead.