aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-10 01:52:36 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-10 01:52:36 -0800
commit2779b842702d6565d73288adc72683f362db310e (patch)
tree0bb801a91ab4d1e26a5205eb75e0dcc635ed0bc4 /desktop
parent5571b9c613a06c57def082bf17f5bc689dbfabdc (diff)
make compatible with many computers
Diffstat (limited to 'desktop')
-rw-r--r--desktop/configuration.nix24
1 files changed, 21 insertions, 3 deletions
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 = {