configurations: formatting

This commit is contained in:
Mateusz Słodkowicz 2023-10-27 12:30:38 +02:00
parent 1bbf628ea9
commit 154d850e49
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 27 additions and 25 deletions

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, inputs, materusFlake, ... }: { config, pkgs, lib, inputs, materusFlake, ... }:
let let
video = [ video = [
"video=HDMI-A-3:1920x1080@144" "video=HDMI-A-3:1920x1080@144"
"video=DP-3:1920x1080@240" "video=DP-3:1920x1080@240"
@ -12,12 +12,12 @@ video = [
#"video=HDMI-A-2:1920x1080@240" #"video=HDMI-A-2:1920x1080@240"
]; ];
in in
{ {
#Kernel #Kernel
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelParams = [ "pcie_acs_override=downstream,multifunction" /*"pci-stub.ids=1002:744c"*/ "nox2apic" "nvme_core.default_ps_max_latency_us=0" "nvme_core.io_timeout=255" "nvme_core.max_retries=10" "nvme_core.shutdown_timeout=10" "amd_iommu=on" "iommu=pt"] ++ video; boot.kernelParams = [ "pcie_acs_override=downstream,multifunction" /*"pci-stub.ids=1002:744c"*/ "nox2apic" "nvme_core.default_ps_max_latency_us=0" "nvme_core.io_timeout=255" "nvme_core.max_retries=10" "nvme_core.shutdown_timeout=10" "amd_iommu=on" "iommu=pt" ] ++ video;
boot.kernelModules = [ "pci-stub" "amdgpu" "i2c_dev" "kvm_amd" "vfio" "vfio_iommu_type1" "vfio-pci" "v4l2loopback" ]; boot.kernelModules = [ "pci-stub" "amdgpu" "i2c_dev" "kvm_amd" "vfio" "vfio_iommu_type1" "vfio-pci" "v4l2loopback" ];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options kvm_amd nested=1 avic=1 npt=1 options kvm_amd nested=1 avic=1 npt=1
@ -35,7 +35,7 @@ in
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
boot.supportedFilesystems = [ "ntfs" "btrfs" "vfat" "exfat" "ext4"]; boot.supportedFilesystems = [ "ntfs" "btrfs" "vfat" "exfat" "ext4" ];
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
@ -52,4 +52,6 @@ in
useOSProber = true; useOSProber = true;
memtest86.enable = true; memtest86.enable = true;
}; };
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
} }