Lots more moves, simplifiactions to options and removed code that peeved me off

This commit is contained in:
Bun 2025-03-18 09:02:34 -04:00
parent 2d2c569705
commit 384e510647
25 changed files with 59 additions and 76 deletions

View file

@ -19,12 +19,14 @@ in {
kernelPackages = pkgsUnstable.linuxPackages_xanmod_stable;
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
# Needed for GPU passthrough
# Load into GPU before NVIDIA driver
initrd.kernelModules = [
"vfio"
"vfio_pci"
"vfio_iommu_type1"
];
lanzaboote.enable = true;
};
# Use second GPU on boot
@ -35,8 +37,7 @@ in {
# Use Nouveau
specialisation.nouveau.configuration.config = {
system.video.nvidia.enable = lib.mkForce false;
system.video.nouveau.enable = lib.mkForce true;
system.nvidia.enable = lib.mkForce false;
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkForce "";
};
}

View file

@ -24,8 +24,7 @@
system = {
desktop.enable = true;
lanzaboote.enable = true;
video.nvidia.enable = true;
nvidia.enable = true;
stateVersion = "24.05";
};