From 2779b842702d6565d73288adc72683f362db310e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 10 Jan 2025 01:52:36 -0800 Subject: make compatible with many computers --- desktop/configuration.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'desktop/configuration.nix') diff --git a/desktop/configuration.nix b/desktop/configuration.nix index 7a09d9c..1e24cad 100644 --- a/desktop/configuration.nix +++ b/desktop/configuration.nix @@ -5,6 +5,11 @@ in { imports = []; + hardware = { + cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + enableRedistributableFirmware = true; + }; + documentation = { enable = true; man.enable = true; @@ -42,7 +47,15 @@ in }; }; + boot = { + extraModulePackages = [ ]; + + initrd = { + availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; + kernelModules = [ ]; + }; + lanzaboote = { enable = vars.secureBoot; pkiBundle = "/etc/secureboot"; @@ -57,6 +70,7 @@ in "snd-seq" "snd-rawmidi" "xhci_hcd" + "kvm_intel" ]; kernelParams = [ @@ -151,6 +165,7 @@ in }; networking = { + useDHCP = lib.mkDefault true; hostName = vars.hostName; networkmanager = { enable = true; @@ -300,9 +315,12 @@ in ssh.enableAskPassword = false; }; - nixpkgs.config = { - allowUnfree = true; - cudaSupport = false; + nixpkgs = { + hostPlatform = lib.mkDefault "x86_64-linux"; + config = { + allowUnfree = true; + cudaSupport = false; + }; }; security = { -- cgit