mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
The common/pc/laptop/ssd folder was apparently moved a level up and was replaced by a symlink to keep things working. We can consolidate this now.
34 lines
778 B
Nix
34 lines
778 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../common/cpu/intel
|
|
../../../common/gpu/nvidia/prime.nix
|
|
../../../common/gpu/nvidia/ada-lovelace
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
../shared/backlight.nix
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
prime = {
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
|
dynamicBoost.enable = lib.mkDefault true;
|
|
};
|
|
|
|
services = {
|
|
asusd.enable = lib.mkDefault true;
|
|
|
|
udev.extraHwdb = ''
|
|
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
|
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
|
|
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
|
|
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
|
|
'';
|
|
};
|
|
}
|