feat: Get ROCm working with flake
This commit is contained in:
parent
5284d6e596
commit
c20fd46f9f
6 changed files with 73 additions and 25 deletions
30
crossbox.nix
30
crossbox.nix
|
|
@ -1,9 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# Using nixos-24.05 for bisq-desktop (last stable release with working bisq-desktop)
|
||||
# bisq-desktop was removed after 24.05 due to OpenJFX EOL issues
|
||||
bisqPkgs = import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/nixos-24.05.tar.gz";
|
||||
sha256 = "0zydsqiaz8qi4zd63zsb2gij2p614cgkcaisnk11wjy3nmiq0x1s";
|
||||
}) { system = pkgs.system; };
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
bisqPkgs.bisq-desktop # v1.9.15-1.9.17 from nixos-24.05
|
||||
bisq2
|
||||
llamacpp-rocm-bin-gfx1151
|
||||
lmstudio
|
||||
];
|
||||
|
||||
networking.hostName = "crossbox";
|
||||
system.stateVersion = "25.11";
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedTCPPorts = [ 22 1234 ];
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
hardware.graphics = {
|
||||
|
|
@ -16,6 +31,17 @@
|
|||
];
|
||||
};
|
||||
|
||||
boot.kernelParams = [ "amdgpu.gttsize=115200" ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# ROCm environment for gfx1151 (Strix Halo)
|
||||
# gfx1151 lacks TensileLibrary support in most ROCm builds,
|
||||
# so we override to gfx1100 which is close enough and has full library support.
|
||||
# The strix-halo overlay's llamacpp binaries override this with 11.5.1 in their wrappers.
|
||||
environment.variables = {
|
||||
HSA_OVERRIDE_GFX_VERSION = "11.0.0";
|
||||
};
|
||||
|
||||
# List services that you want to enable:
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue