hopper things

This commit is contained in:
xunuwu 2024-02-09 21:55:57 +01:00
parent 498f3050d5
commit 926f8b190b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
14 changed files with 96 additions and 22 deletions

View file

@ -1,8 +1,7 @@
{inputs}: {
{inputs, ...}: {
imports = with inputs.hardware.nixosModules; [
common-cpu-intel
common-pc-hdd
common-gpu-nvidia
./hardware.nix
];

View file

@ -1,4 +1,14 @@
{...}: {
{config, ...}: {
nixpkgs.hostPlatform.system = "x86_64-linux";
## nvidia gpu
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
boot = {
initrd = {
availableKernelModules = ["ehci_pci" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];