summaryrefslogtreecommitdiff
path: root/nixos/boot.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-07-27 21:19:05 +0200
committerQuentin Aristote <quentin@aristote.fr>2022-07-27 21:19:05 +0200
commit276414f676b94f3521198b2de49126029fd7249c (patch)
tree4562f272ace518985a37df3f80b00cbd01b9a0f3 /nixos/boot.nix
parent31a9db9cb4ecf9deecf313a09ffc8ece1299e5d4 (diff)
switch to latest kernel
Diffstat (limited to 'nixos/boot.nix')
-rw-r--r--nixos/boot.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/nixos/boot.nix b/nixos/boot.nix
index 8cd3afa..b91bde6 100644
--- a/nixos/boot.nix
+++ b/nixos/boot.nix
@@ -1,8 +1,11 @@
-{ config, ... }:
+{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
+
+ <nixos-hardware/dell/latitude/7490>
+ <nixos-hardware/common/pc/ssd>
];
boot.loader = {
@@ -34,4 +37,13 @@
preLVM = true;
};
};
+
+ # Kernel
+ boot.initrd.availableKernelModules =
+ [ "usb_storage" ];
+ boot.kernelParams =
+ [ "i915.dc_enable=0" "intel_idle.max_cstate=1" ];
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ hardware.firmware = with pkgs; [ firmwareLinuxNonfree ];
}