$ detectbg
$ detectbg [print-if-light default=light] [print-if-dark default=dark]
nix develop
: opens up abash
shell with the bare minimum Rust toolset (cargo
&rustc
) by defaultnix build
: builds the Rust project. Outputs the binary to./result/bin/<name>
nix run
: runs the Rust program.
- wiki/Flakes
- Fenix - used for managing Rust toolchains (read the
makeRustPlatform
example) - rust-section of language frameworks - optional (use it for extending the template)