Skip to content

sammyjoyce/rocm-nightly-flake

ROCm Nightly Flake (gfx1151)

CI License

Nix flake packaging of the ROCm nightly monolithic tarball for AMD Strix Halo (Radeon 8060S, RDNA 3.5, gfx1151).

Quick start

# 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

NixOS module

# 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/rocm symlink via tmpfiles
  • Sets ROCM_PATH, ROCM_HOME, HIP_PATH in /etc/profile.d
  • Configures ld.so.conf.d for library discovery

Overlay

{
  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
      ];
    };
  };
}

Updating

Update ROCm nightly tarball (version + hash)

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-run

Note: prefetching downloads the full tarball (large).

Update flake inputs (nixpkgs, flake-utils)

nix flake update

Format

nix fmt

What's included

  • 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_PATH and LD_LIBRARY_PATH
  • Total size: ~13 GB

Troubleshooting

See TROUBLESHOOTING.md for solutions to common issues (GPU detection, download problems, binary errors, NixOS module configuration).

License

  • Repo code: MIT (see LICENSE)
  • Upstream ROCm nightly tarballs: governed by AMD's licensing/terms (redistributable but not open source)

About

ROCm nightly monolithic tarball packaged as a Nix flake (gfx1151)

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages