unbloat shit
This commit is contained in:
parent
0787779876
commit
5bbc58409a
2 changed files with 28 additions and 1 deletions
|
|
@ -8,8 +8,25 @@
|
|||
imports = [
|
||||
inputs.nixos-vfio.nixosModules.vfio
|
||||
];
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
boot.kernelParams = ["amd_iommu=on" "nvidia-drm.modeset=0"];
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
powerManagement.enable = false;
|
||||
prime = {
|
||||
offload.enable = true;
|
||||
offload.enableOffloadCmd = true;
|
||||
|
||||
nvidiaBusId = "PCI:1:0:0"; # 4070 ti super
|
||||
amdgpuBusId = "PCI:19:0:0"; # 7950x3d igpu raphael or someshit
|
||||
};
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
||||
boot.kernelParams = ["amd_iommu=on" "nvidia-drm.modeset=0"]; # drm modeset was supposed to prevent nvidia taking over DE but doesnt work ? for some reason
|
||||
boot.blacklistedKernelModules = ["nvidia" "nouveau"];
|
||||
boot.extraModulePackages = [config.boot.kernelPackages.kvmfr];
|
||||
boot.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||
|
|
|
|||
10
modules/nixos/gaming.nix
Normal file
10
modules/nixos/gaming.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
protonup-ng
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue