More hardware configuration for crash

This commit is contained in:
Nathan McCarty 2025-01-13 19:32:49 -05:00
parent 9ea0aa1abe
commit d1a386edf5
2 changed files with 20 additions and 0 deletions

View file

@ -158,6 +158,7 @@
libinput libinput
maliit-keyboard maliit-keyboard
dconf-editor dconf-editor
surface-control
]; ];
# Setup iptsd for touch and stylus support # Setup iptsd for touch and stylus support
@ -169,6 +170,20 @@
}; };
}; };
# And thermald
services.thermald = {
enable = true;
};
# Nvidia gpu setup
hardware.nvidia = {
open = true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:2:0:0";
};
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;

View file

@ -31,6 +31,11 @@
imports = [ imports = [
# Hardware support # Hardware support
inputs.nixos-hardware.nixosModules.microsoft-surface-common inputs.nixos-hardware.nixosModules.microsoft-surface-common
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
# Our modules # Our modules
(import ../../modules/base.nix {inherit inputs;}) (import ../../modules/base.nix {inherit inputs;})
(import ./configuration.nix) (import ./configuration.nix)