loki: Enable 32bit graphics, add workaround for ROCm/HIP
This commit is contained in:
parent
2862a8a6e5
commit
4e713b60a3
1 changed files with 27 additions and 5 deletions
|
@ -103,11 +103,16 @@
|
|||
# high-resolution display
|
||||
# hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
# Enable firmware
|
||||
hardware.enableAllFirmware = true;
|
||||
hardware = {
|
||||
# Enable firmware
|
||||
enableAllFirmware = true;
|
||||
graphics = {
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
# i2c support
|
||||
hardware.i2c.enable = true;
|
||||
# i2c support
|
||||
i2c.enable = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
initrd.availableKernelModules = [
|
||||
|
@ -505,10 +510,27 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Workaround for packages that has HIP paths hardcoded
|
||||
systemd.tmpfiles.rules =
|
||||
let
|
||||
rocmEnv = pkgs.symlinkJoin {
|
||||
name = "rocm-combined";
|
||||
paths = with pkgs.rocmPackages; [
|
||||
rocblas
|
||||
hipblas
|
||||
clr
|
||||
];
|
||||
};
|
||||
in
|
||||
[ "L+ /opt/rocm - - - - ${rocmEnv}" ];
|
||||
|
||||
nix.settings.post-build-hook =
|
||||
let
|
||||
inherit (attic.packages.${pkgs.system}) attic-client;
|
||||
cachedPackagePatterns = builtins.concatStringsSep "|" [ "mongodb" ];
|
||||
cachedPackagePatterns = builtins.concatStringsSep "|" [
|
||||
"mongodb"
|
||||
"qgis"
|
||||
];
|
||||
in
|
||||
pkgs.writeScript "upload-to-cache" ''
|
||||
set -eu
|
||||
|
|
Loading…
Reference in a new issue