25 lines
582 B
Markdown
25 lines
582 B
Markdown
# Nix Templates
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
nix flake init -t git+https://gitea.susano-homelab.duckdns.org/fujin/templates#rust
|
|
```
|
|
|
|
## Available Templates
|
|
|
|
- **rust**: Stable Rust toolchain with `rust-analyzer`, `clippy`, `rustfmt`, and `pre-commit` hooks. Includes Linux/macOS system dependencies for OpenSSL and Security frameworks.
|
|
|
|
## Requirements
|
|
|
|
- Nix with `flakes` and `nix-command` experimental features enabled.
|
|
- New files must be added to git (`git add .`) for Nix to recognize them.
|
|
|
|
## Development Shell
|
|
|
|
Once initialized, enter the environment with:
|
|
|
|
```bash
|
|
nix develop
|
|
```
|