vendor nixos-hardware config for specific machine

This commit is contained in:
ulic-youthlic 2025-05-10 20:35:11 +08:00
parent 37f1b9ba23
commit 39381e4298
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -6,8 +6,12 @@
...
}: {
imports =
(with inputs; [
nixos-hardware.nixosModules.asus-fx506hm
(with inputs.nixos-hardware.nixosModules; [
common-cpu-intel
common-gpu-nvidia
common-pc-laptop
common-pc-laptop-ssd
asus-battery
])
++ [
./users
@ -96,6 +100,14 @@
loader.efi.canTouchEfiVariables = true;
initrd.systemd.enable = true;
};
hardware.nvidia = {
modesetting.enable = true;
open = true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions