Nix flake packaging of the ROCm nightly monolithic tarball for AMD Strix Halo (Radeon 8060S, RDNA 3.5, gfx1151).
# Test GPU detection
nix run github:sammyjoyce/rocm-nightly-flake
# Enter dev shell with ROCm env vars set
nix develop github:sammyjoyce/rocm-nightly-flake
# Build the package (downloads a large tarball)
nix build github:sammyjoyce/rocm-nightly-flake# flake.nix
{
inputs.rocm-nightly.url = "github:sammyjoyce/rocm-nightly-flake";
outputs = { self, nixpkgs, rocm-nightly, ... }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
modules = [
rocm-nightly.nixosModules.default
{
services.rocmNightlyGfx1151.enable = true;
}
];
};
};
}The module:
- Installs the ROCm package to the system profile
- Creates
/opt/rocmsymlink via tmpfiles - Sets
ROCM_PATH,ROCM_HOME,HIP_PATHin/etc/profile.d - Configures
ld.so.conf.dfor library discovery
{
inputs.rocm-nightly.url = "github:sammyjoyce/rocm-nightly-flake";
outputs = { self, nixpkgs, rocm-nightly, ... }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
modules = [
{ nixpkgs.overlays = [ rocm-nightly.overlays.default ]; }
# pkgs.rocm-nightly-gfx1151-bin (and pkgs.rocm-nightly) are now available
];
};
};
}This repo includes an updater app:
# Pick the latest gfx1151 nightly from https://rocm.nightlies.amd.com/tarball/ and rewrite flake.nix
nix run .#update
# Or run from GitHub
nix run github:sammyjoyce/rocm-nightly-flake#update
# Pin an explicit version
nix run .#update -- --version 7.12.0a20260205
# Preview without modifying files
nix run .#update -- --dry-runNote: prefetching downloads the full tarball (large).
nix flake updatenix fmt- ROCm runtime (HSA, HIP)
- ROCm libraries (rocBLAS, hipBLAS, hipBLASLt, MIOpen, rocFFT, etc.)
- ROCm tools (rocminfo, rocm-smi, rocprof, hipcc)
- LLVM/Clang toolchain with AMDGPU backend
- Wrapped binaries with
ROCM_PATHandLD_LIBRARY_PATH - Total size: ~13 GB
See TROUBLESHOOTING.md for solutions to common issues (GPU detection, download problems, binary errors, NixOS module configuration).
- Repo code: MIT (see
LICENSE) - Upstream ROCm nightly tarballs: governed by AMD's licensing/terms (redistributable but not open source)