feat(halo): enable hw graphics

This commit is contained in:
Harald Hoyer 2026-02-17 10:05:53 +01:00
parent b85719077d
commit c24572c318

View file

@ -10,7 +10,7 @@ with lib.metacfg;
./hardware-configuration.nix
./xremap.nix
];
boot.lanzaboote.pkiBundle = "/var/lib/sbctl";
boot.lanzaboote.pkiBundle = "/var/lib/sbctl";
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
networking.firewall.allowedTCPPorts = [
@ -18,19 +18,33 @@ with lib.metacfg;
8000
];
systemd.tmpfiles.rules =
let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
];
};
in [
"L+ /opt/rocm - - - - ${rocmEnv}"
];
hardware.graphics = {
enable = true;
extraPackages =
[ ]
++ lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
with pkgs;
[
rocmPackages.clr.icd
]
);
};
systemd.tmpfiles.rules =
let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
];
};
in
[
"L+ /opt/rocm - - - - ${rocmEnv}"
];
powerManagement.cpuFreqGovernor = "performance";