feat(halo): enable hw graphics
This commit is contained in:
parent
b85719077d
commit
c24572c318
1 changed files with 28 additions and 14 deletions
|
|
@ -18,6 +18,19 @@ with lib.metacfg;
|
||||||
8000
|
8000
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
extraPackages =
|
||||||
|
[ ]
|
||||||
|
++ lib.optionals pkgs.stdenv.targetPlatform.isx86_64 (
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
rocmPackages.clr.icd
|
||||||
|
]
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules =
|
systemd.tmpfiles.rules =
|
||||||
let
|
let
|
||||||
rocmEnv = pkgs.symlinkJoin {
|
rocmEnv = pkgs.symlinkJoin {
|
||||||
|
|
@ -28,7 +41,8 @@ with lib.metacfg;
|
||||||
clr
|
clr
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in [
|
in
|
||||||
|
[
|
||||||
"L+ /opt/rocm - - - - ${rocmEnv}"
|
"L+ /opt/rocm - - - - ${rocmEnv}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue