mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
feat(vfio): try vfio setup on zephyrus
This commit is contained in:
parent
cb272240a4
commit
b838e9ca78
2 changed files with 25 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
../../modules/nixos/desktop/laptop.nix
|
||||
|
||||
# hardware drivers
|
||||
../../modules/nixos/hardware/nvidia.nix
|
||||
../../modules/nixos/hardware/nvidia-vfio.nix
|
||||
|
||||
# udev rules
|
||||
../../modules/nixos/hardware/udev/basys3.nix
|
||||
|
|
|
|||
24
nixcfgs/modules/nixos/hardware/nvidia-vfio.nix
Normal file
24
nixcfgs/modules/nixos/hardware/nvidia-vfio.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# This is highly experimental and WIP. Do not use it.
|
||||
{...}: {
|
||||
boot.extraModprobeConfig = ''
|
||||
blacklist nouveau
|
||||
options nouveau modeset=0
|
||||
'';
|
||||
|
||||
services.xserver.videoDrivers = ["modesetting"];
|
||||
boot.blacklistedKernelModules = ["nouveau" "nvidia" "nvidia_drm" "nvidia_modeset"];
|
||||
hardware.nvidia = {
|
||||
# enable = false;
|
||||
modesetting.enable = false;
|
||||
powerManagement.enable = false;
|
||||
};
|
||||
# Enable ssh to solve issues temporarily
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
UseDns = true;
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue