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
|
./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";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue