From d1a386edf57559079d3b476b6ad0744874d3ee2c Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 13 Jan 2025 19:32:49 -0500 Subject: [PATCH] More hardware configuration for crash --- nixos/machines/crash/configuration.nix | 15 +++++++++++++++ nixos/machines/crash/machine.nix | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/nixos/machines/crash/configuration.nix b/nixos/machines/crash/configuration.nix index e47b6bf..22e7c76 100644 --- a/nixos/machines/crash/configuration.nix +++ b/nixos/machines/crash/configuration.nix @@ -158,6 +158,7 @@ libinput maliit-keyboard dconf-editor + surface-control ]; # 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 # started in user sessions. # programs.mtr.enable = true; diff --git a/nixos/machines/crash/machine.nix b/nixos/machines/crash/machine.nix index 53690f9..c8f453d 100644 --- a/nixos/machines/crash/machine.nix +++ b/nixos/machines/crash/machine.nix @@ -31,6 +31,11 @@ imports = [ # Hardware support 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 (import ../../modules/base.nix {inherit inputs;}) (import ./configuration.nix)