feat(halo): enable hw graphics
This commit is contained in:
parent
b85719077d
commit
c24572c318
1 changed files with 28 additions and 14 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue