x/hw: add parameters required for amd build
This commit is contained in:
parent
c39177a25c
commit
e82b013df9
|
@ -157,7 +157,7 @@
|
|||
# Virtualization
|
||||
# ../../2configs/virtualisation/libvirt.nix
|
||||
../../2configs/virtualisation/docker.nix
|
||||
../../2configs/virtualisation/virtualbox.nix
|
||||
# ../../2configs/virtualisation/virtualbox.nix
|
||||
#{
|
||||
# networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||
# networking.nat = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
#boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocm-opencl-icd pkgs.rocm-opencl-runtime ];
|
||||
# For 32 bit applications
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
nixos-hardware.nixosModules.lenovo-thinkpad-l14-amd
|
||||
];
|
||||
|
||||
swapDevices = [ ];
|
||||
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
@ -22,5 +29,9 @@
|
|||
boot.extraModprobeConfig = ''
|
||||
options thinkpad_acpi fan_control=1
|
||||
'';
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ disk ? "/dev/nvme0n1", hostId, ... }:
|
||||
{
|
||||
services.zfs.autoScrub.enable = true;
|
||||
boot.zfs.requestEncryptionCredentials = true;
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
|
Loading…
Reference in a new issue