Make nvidia on kardorf work
This commit is contained in:
parent
fdc8b03d9b
commit
3eba0fe092
@ -8,6 +8,7 @@
|
|||||||
# TODO: apply this to hm and nixos without duplicate code
|
# TODO: apply this to hm and nixos without duplicate code
|
||||||
overlays = builtins.attrValues outputs.overlays;
|
overlays = builtins.attrValues outputs.overlays;
|
||||||
config = {
|
config = {
|
||||||
|
nvidia.acceptLicense = true;
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowUnfreePredicate = _: true; # TODO: what is this
|
allowUnfreePredicate = _: true; # TODO: what is this
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
|
@ -12,11 +12,12 @@
|
|||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"uas"
|
"uas"
|
||||||
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
"sr_mod"
|
"sr_mod"
|
||||||
];
|
];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
|
||||||
@ -80,5 +81,8 @@
|
|||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
||||||
# hardware.nvidia.modesetting.enable = true; # for wayland
|
# hardware.nvidia.modesetting.enable = true; # produces errors, display manager fails to start
|
||||||
|
|
||||||
|
# hardware.nvidia.nvidiaSettings = true;
|
||||||
|
hardware.nvidia.open = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user