Quick Install
The install script handles everything: installing git, enabling flakes, detecting your hardware, letting you pick a model, and building the system.
Requirements
- NixOS (recommended). The agent manages the system through
configuration.nix. - 16GB+ RAM for the recommended model (
qwen3:30b-a3b). Smaller models work with less RAM but have degraded tool calling. - 20GB+ free disk for the model weights and container images.
Run the Installer
The script will:
- Install git (needed for flakes)
- Enable Nix flakes in your configuration
- Detect your RAM, disk space, and GPU
- Show you which models fit your system and let you choose
- Let you pick a context size (4k/8k/16k/32k)
- If an AMD or NVIDIA GPU is detected, offer to enable GPU acceleration (ROCm or CUDA)
- Optionally set CPU/memory limits so Demi doesn't hog the system
- Optionally create a non-root user with access to run
demi - Create a flake.nix, rebuild NixOS, and pull the model
Once it finishes, log in and run demi.
Existing Flake Users
If you already have a flake-based NixOS config, add nurvus as an input:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nurvus.url = "git+https://codeberg.org/ewrogers/nurvus";
};
outputs = { nixpkgs, nurvus, ... }: {
nixosConfigurations.my-homelab = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
nurvus.nixosModules.default
{
nixpkgs.hostPlatform = "x86_64-linux"; # or "aarch64-linux"
services.nurvus.enable = true;
}
];
};
};
}
Then rebuild: