mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
44 lines
668 B
Nix
44 lines
668 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
hardware = {
|
|
enableAllFirmware = true;
|
|
enableRedistributableFirmware = true;
|
|
|
|
cpu = {
|
|
intel = {
|
|
updateMicrocode = lib.mkDefault true;
|
|
};
|
|
};
|
|
|
|
nvidia = {
|
|
powerManagement = {
|
|
enable = true;
|
|
};
|
|
|
|
modesetting = {
|
|
enable = true;
|
|
};
|
|
|
|
prime = {
|
|
sync = {
|
|
enable = true;
|
|
};
|
|
|
|
nvidiaBusId = "PCI:3:0:0";
|
|
intelBusId = "PCI:0:2:0";
|
|
};
|
|
};
|
|
};
|
|
|
|
services = {
|
|
xserver = {
|
|
videoDrivers = [ "nvidia" ];
|
|
};
|
|
};
|
|
}
|