vendor nixos-hardware config for specific machine
This commit is contained in:
parent
37f1b9ba23
commit
39381e4298
1 changed files with 14 additions and 2 deletions
|
|
@ -6,8 +6,12 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports =
|
imports =
|
||||||
(with inputs; [
|
(with inputs.nixos-hardware.nixosModules; [
|
||||||
nixos-hardware.nixosModules.asus-fx506hm
|
common-cpu-intel
|
||||||
|
common-gpu-nvidia
|
||||||
|
common-pc-laptop
|
||||||
|
common-pc-laptop-ssd
|
||||||
|
asus-battery
|
||||||
])
|
])
|
||||||
++ [
|
++ [
|
||||||
./users
|
./users
|
||||||
|
|
@ -96,6 +100,14 @@
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
initrd.systemd.enable = 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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue