mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
123
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
}:
|
||||
|
||||
{
|
||||
nix.settings.extra-sandbox-paths = [
|
||||
"/dev/kfd"
|
||||
"/sys/devices/virtual/kfd"
|
||||
"/dev/dri/renderD128"
|
||||
];
|
||||
|
||||
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
@@ -24,10 +31,22 @@
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
kernelModules = [ "kvm-amd" "amdgpu" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
hardware.graphics.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
amdvlk
|
||||
];
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
#
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# clinfo
|
||||
# ];
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/5938c796-6ff5-49d9-a3a6-022b4c32beeb";
|
||||
|
||||
Reference in New Issue
Block a user