Skip to content

Commit

Permalink
[chore]: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jan 7, 2024
1 parent e164bfa commit a6483b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions hosts/yuki/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,22 @@
};

enableAllFirmware = true;
enableRedistributableFirmware = true;

nvidia = {
modesetting.enable = true;
powerManagement.enable = true;

prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";

offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";

reverseSync.enable = true;
};
};

Expand Down
5 changes: 3 additions & 2 deletions hosts/yuki/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
imports = [(modulesPath + "/installer/scan/not-detected.nix")];

boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = ["i915" "nvidia" "nvidia_drm" "nvidia_modeset"];
boot.initrd.kernelModules = ["i915" "nvidia"];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.kernelParams = ["module_blacklist=nouveau" "iommu=pt" "i915.enable_psr=0" "i8042.direct" "i8042.dumbkbd"];
boot.blacklistedKernelModules = ["nouveau"];
boot.kernelParams = ["iommu=pt" "i915.enable_psr=0" "i8042.direct" "i8042.dumbkbd"];

fileSystems."/" = {
device = "/dev/disk/by-label/NixOS-ROOT";
Expand Down

0 comments on commit a6483b6

Please sign in to comment.