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