configurations: update

This commit is contained in:
2023-10-05 17:24:33 +02:00
parent c49ae08896
commit 672cac4c06
9 changed files with 21 additions and 20 deletions
@@ -2,10 +2,11 @@
let
video = [
#"video=DP-3:1920x1080@144"
"video=HDMI-A-3:1920x1080@144"
"video=DP-3:1920x1080@240"
"video=DP-1:1920x1080@240"
#"video=DP-1:1920x1080@240"
#"video=DP-2:1920x1080@240"
#"video=HDMI-A-1:1920x1080@240"
#"video=HDMI-A-2:1920x1080@240"
@@ -22,7 +23,10 @@ in
options kvm_amd nested=1 avic=1 npt=1
options vfio_iommu_type1 allow_unsafe_interrupts=1
'';
boot.kernel.sysctl = {"vm.max_map_count" = 1000000;};
boot.kernel.sysctl = {
"vm.max_map_count" = 1000000;
"vm.swappiness" = 10;
};
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
@@ -1,11 +1,4 @@
{ config, pkgs, lib, inputs, materusFlake, materusPkgs, ... }:
let
pkg = import (builtins.fetchTarball {
name = "nixos-23.05";
url = "https://github.com/nixos/nixpkgs/archive/4ecab3273592f27479a583fb6d975d4aba3486fe.tar.gz";
sha256 = "sha256:10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf";
}) {system = pkgs.system;};
in
{
imports =
[
@@ -45,7 +38,6 @@ in
materusPkgs.i686Linux.amdgpu-pro-libs.vulkan
libvdpau-va-gl
];
users.groups.gpurun = {};
services.udev.extraRules = ''
#GPU bar size